enable jsonls
This commit is contained in:
parent
b60feb8dd2
commit
079cb3be00
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,8 @@ require("lspkind").init({
|
||||||
})
|
})
|
||||||
|
|
||||||
local vim_lsp_capabilities = vim.lsp.protocol.make_client_capabilities()
|
local vim_lsp_capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
|
vim_lsp_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
|
|
||||||
local lsp_capabilities = vim.tbl_deep_extend(
|
local lsp_capabilities = vim.tbl_deep_extend(
|
||||||
"force",
|
"force",
|
||||||
require("cmp_nvim_lsp").default_capabilities(),
|
require("cmp_nvim_lsp").default_capabilities(),
|
||||||
|
@ -16,6 +18,10 @@ lspconfig.gopls.setup({
|
||||||
capabilities = lsp_capabilities,
|
capabilities = lsp_capabilities,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
lspconfig.jsonls.setup({
|
||||||
|
capabilities = lsp_capabilities,
|
||||||
|
})
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
lspconfig.lua_ls.setup({
|
||||||
capabilities = lsp_capabilities,
|
capabilities = lsp_capabilities,
|
||||||
on_init = function(client)
|
on_init = function(client)
|
||||||
|
|
Loading…
Reference in a new issue