Jelajahi Sumber

nixpkgs/neovim: fix LSP override

Thomas Dy 4 bulan lalu
induk
melakukan
1e3b325654
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      .config/nixpkgs/neovim/mappings.lua

+ 1 - 0
.config/nixpkgs/neovim/mappings.lua

@@ -86,6 +86,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
     if client.name == 'dprint' or client.name == 'eslint' then
       -- mappings should have been attached by typescript and re-attaching can
       -- overwrite the typescript specific overrides
+      return
     end
 
     local opts = { silent = true, buffer = args.buf }