aboutsummaryrefslogtreecommitdiff
path: root/lsp/ts_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/ts_ls.lua')
-rw-r--r--lsp/ts_ls.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua
new file mode 100644
index 0000000..940fd3d
--- /dev/null
+++ b/lsp/ts_ls.lua
@@ -0,0 +1,8 @@
+return {
+ cmd = { "typescript-language-server", "--stdio" },
+ filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
+ init_options = {
+ disableAutomaticTypeAcquisition = true
+ },
+ root_markers = { "tsconfig.json", "jsconfig.json", "package.json" }
+} \ No newline at end of file