Don't let keymaps from different LSPs leak

This commit is contained in:
Tim Macfarlane 2024-11-20 11:10:50 +01:00
parent 63150fa4c5
commit 251f4352f8

View file

@ -67,7 +67,7 @@ function M.resolve(buffer)
if not Keys.resolve then
return {}
end
local spec = M.get()
local spec = vim.tbl_extend("force", {}, M.get())
local opts = LazyVim.opts("nvim-lspconfig")
local clients = LazyVim.lsp.get_clients({ bufnr = buffer })
for _, client in ipairs(clients) do