enable jsonls

This commit is contained in:
Adithya 2024-02-13 23:39:26 +05:30
parent b60feb8dd2
commit 079cb3be00
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -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)