mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 03:08:56 +02:00
add: move config to individual file
This commit is contained in:
parent
554d68c7ae
commit
549a63a3da
9 changed files with 291 additions and 187 deletions
18
lua/user/lsp/settings/tsserver.lua
Normal file
18
lua/user/lsp/settings/tsserver.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
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",
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue