Skip to content

Commit 1ca54d2

Browse files
committed
Add ts_ls config
1 parent 68fdc30 commit 1ca54d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lua/Junzhe/plugins/lsp/lspconfig.lua

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ return {
124124
lspconfig["ts_ls"].setup({
125125
capabilities = capabilities,
126126
on_attach = on_attach,
127+
root_dir = lspconfig.util.root_pattern("package.json"),
128+
single_file_support = false
127129
})
128130

129131
-- configure css server

0 commit comments

Comments
 (0)