浏览代码

nixpkgs/neovim: disable aliasing when renaming in ts_ls

Thomas Dy 3 月之前
父节点
当前提交
17b08cb900
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .config/nixpkgs/neovim/lsp.lua

+ 2 - 0
.config/nixpkgs/neovim/lsp.lua

@@ -33,6 +33,8 @@ else
         completionDisableFilterText = true,
         preferences = {
           importModuleSpecifierPreference = 'non-relative',
+          -- this prevents renames from aliasing when destructuring
+          providePrefixAndSuffixTextForRename = false,
         },
       },
       capabilities = capabilities,