mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
18 lines
445 B
Lua
18 lines
445 B
Lua
return {
|
|
-- add cmd
|
|
cmd = { "typescript-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", ".git"),
|
|
init_options = {
|
|
hostInfo = "neovim",
|
|
},
|
|
}
|