From 3789e6736d0984e309c98e20dd8bf140b7fe35c2 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sat, 11 Sep 2021 00:21:26 +0200 Subject: [PATCH] json lsp --- lua/mylsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/mylsp.lua b/lua/mylsp.lua index de49ca7..934b97a 100644 --- a/lua/mylsp.lua +++ b/lua/mylsp.lua @@ -6,6 +6,7 @@ nvim_lsp.ccls.setup {} nvim_lsp.pyright.setup{} nvim_lsp.clangd.setup{} nvim_lsp.cmake.setup{} +nvim_lsp.jsonls.setup{} -- Add additional capabilities supported by nvim-cmp @@ -74,7 +75,7 @@ local on_attach = function(client, bufnr) end -- Enable some language servers with the additional completion capabilities offered by nvim-cmp -local servers = { 'clangd', 'pyright', 'cmake', 'tsserver' } +local servers = { 'clangd', 'pyright', 'cmake', 'jsonls' } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { on_attach = on_attach,