From 079cb3be006dda5e89d6021ead3b2a36c1e29e76 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 13 Feb 2024 23:39:26 +0530 Subject: [PATCH] enable jsonls --- after/plugin/lsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 33569ac..2d05080 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -3,6 +3,8 @@ require("lspkind").init({ }) 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( "force", require("cmp_nvim_lsp").default_capabilities(), @@ -16,6 +18,10 @@ lspconfig.gopls.setup({ capabilities = lsp_capabilities, }) +lspconfig.jsonls.setup({ + capabilities = lsp_capabilities, +}) + lspconfig.lua_ls.setup({ capabilities = lsp_capabilities, on_init = function(client)