dotfiles/.config/nvim/lua/lsp/servers/tsserver.lua

17 lines
485 B
Lua
Raw Normal View History

return {
2023-04-03 09:19:12 -04:00
cmd = {vim.g.lsp_path .. "typescript-language-server", "--stdio"},
filetypes = {"javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx"},
on_attach = vim.g.lsp_on_attach,
handlers = vim.g.lsp_handlers,
capabilities = vim.g.lsp_capabilities,
2023-04-03 09:19:12 -04:00
init_options = {hostInfo = "neovim"},
root_dir = require"lspconfig.util".root_pattern{
"package.json",
"tsconfig.json",
"jsconfig.json",
".git",
},
}