浏览代码

nixpkgs/neovim: simplify eslint LSP

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

+ 3 - 14
.config/nixpkgs/neovim/lsp.lua

@@ -11,20 +11,9 @@ nvim_lsp.bashls.setup({
   capabilities = capabilities,
 });
 
-if vim.fn.executable("node_modules/.bin/eslint") == 1 then
-  local options = {}
-  -- some projects have local rules, this isn't exactly generic but is good
-  -- enough
-  if vim.fn.isdirectory("lint-rules") == 1 then
-    options.rulePaths = { "./lint-rules" }
-  end
-
-  nvim_lsp.eslint.setup({
-    settings = {
-      options = options,
-    },
-  })
-end
+nvim_lsp.eslint.setup({
+  capabilities = capabilities,
+});
 
 if vim.fn.executable("dprint") == 1 then
   local version = vim.version.parse(vim.fn.system("dprint --version"))