瀏覽代碼

nixpkgs/neovim: fix LSP override

Thomas Dy 4 月之前
父節點
當前提交
1e3b325654
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 }