Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions after/plugin/lsp.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local lsp = require("lsp-zero")
local nvim_lsp = require('lspconfig')

lsp.preset("recommended")

Expand All @@ -19,6 +20,10 @@ lsp.configure('sumneko_lua', {
}
})

lsp.configure('tsserver', {
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
})

local cmp = require('cmp')
local cmp_select = {behavior = cmp.SelectBehavior.Select}
Expand Down