diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 40ddfd2..ed824b0 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -264,6 +264,10 @@ vim.api.nvim_create_autocmd("LspAttach", { return end + if string.find(file_name, "/tmp/") then + return + end + for _, mappings in pairs(lsp_key_mappings) do local capability, mode, lhs, rhs = unpack(mappings) if client.supports_method(capability) then @@ -286,6 +290,10 @@ vim.api.nvim_create_autocmd("LspDetach", { return end + if string.find(file_name, "/tmp/") then + return + end + for _, mappings in pairs(lsp_key_mappings) do local capability, mode, lhs, _ = unpack(mappings) if client.supports_method(capability) then