change root_dir for eslint lsp
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user