change root_dir for eslint lsp

This commit is contained in:
2022-04-15 23:07:01 +03:00
parent f5bc06d60c
commit 5f2f39adb4

View File

@@ -106,6 +106,10 @@ lsp_installer.on_server_ready(function(server)
opts.root_dir = util.root_pattern(".git", "package.json", "tsconfig.json")
end
if server.name == "eslint" then
opts.root_dir = util.root_pattern(".eslintrc", ".eslintrc.json")
end
server:setup(opts)
end)