From 879d56501dfe7fe4dd606a6fc0eb9c7c6876a5cb Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 25 Sep 2020 14:33:12 -0400 Subject: [PATCH] Add JSON LSP --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index a28b820..d6b0248 100644 --- a/.vimrc +++ b/.vimrc @@ -362,6 +362,7 @@ local on_attach = function(client, bufnr) vim.fn.nvim_set_keymap("n", "", "lua vim.lsp.buf.signature_help()", {noremap = true, silent = true}) vim.fn.nvim_set_keymap("n", "1gD", "lua vim.lsp.buf.type_definition()", {noremap = true, silent = true}) vim.fn.nvim_set_keymap("n", "gr", "lua vim.lsp.buf.references()", {noremap = true, silent = true}) + vim.fn.nvim_set_keymap("n", "gR", "lua vim.lsp.buf.rename()", {noremap = true, silent = true}) vim.fn.nvim_set_keymap("n", "g0", "lua vim.lsp.buf.document_symbol()", {noremap = true, silent = true}) vim.fn.nvim_set_keymap("n", "gW", "lua vim.lsp.buf.workspace_symbol()", {noremap = true, silent = true}) end @@ -390,6 +391,11 @@ nvim_lsp.gopls.setup{ } } +nvim_lsp.jsonls.setup{ + on_attach = on_attach, + capabilities = lsp_status.capabilities, +} + EOF " Treesitter highligting