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)