소스 검색

neovim/nixpkgs: fix local lint rule check

Thomas Dy 2 년 전
부모
커밋
247d9fb066
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .config/nixpkgs/neovim/lsp.lua

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

@@ -21,10 +21,10 @@ local null_ls_sources = {
 }
 
 if vim.fn.executable("node_modules/.bin/eslint") == 1 then
-  options = {}
+  local options = {}
   -- some projects have local rules, this isn't exactly generic but is good
   -- enough
-  if vim.fn.isdirectory("lint-rules") then
+  if vim.fn.isdirectory("lint-rules") == 1 then
     options.rulePaths = { "./lint-rules" }
   end