mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
20 lines
425 B
Lua
20 lines
425 B
Lua
return {
|
|
cmd = { "vscode-eslint-language-server", "--stdio" }, -- add file type support
|
|
filetypes = {
|
|
"javascript",
|
|
"javascriptreact",
|
|
"javascript.jsx",
|
|
"typescript",
|
|
"typescriptreact",
|
|
"typescript.tsx",
|
|
},
|
|
-- add dynamic root dir support
|
|
root_dir = require("lspconfig.util").root_pattern(
|
|
"package.json",
|
|
"tsconfig.json",
|
|
"jsconfig.json",
|
|
".eslintrc.json",
|
|
".eslintrc.js",
|
|
".eslintrc.cjs"
|
|
),
|
|
}
|