Skip to content

Commit

Permalink
Add JSON LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Sep 25, 2020
1 parent 736324a commit 879d565
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ local on_attach = function(client, bufnr)
vim.fn.nvim_set_keymap("n", "<c-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", {noremap = true, silent = true})
vim.fn.nvim_set_keymap("n", "1gD", "<cmd>lua vim.lsp.buf.type_definition()<CR>", {noremap = true, silent = true})
vim.fn.nvim_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", {noremap = true, silent = true})
vim.fn.nvim_set_keymap("n", "gR", "<cmd>lua vim.lsp.buf.rename()<CR>", {noremap = true, silent = true})
vim.fn.nvim_set_keymap("n", "g0", "<cmd>lua vim.lsp.buf.document_symbol()<CR>", {noremap = true, silent = true})
vim.fn.nvim_set_keymap("n", "gW", "<cmd>lua vim.lsp.buf.workspace_symbol()<CR>", {noremap = true, silent = true})
end
Expand Down Expand Up @@ -390,6 +391,11 @@ nvim_lsp.gopls.setup{
}
}

nvim_lsp.jsonls.setup{
on_attach = on_attach,
capabilities = lsp_status.capabilities,
}

EOF

" Treesitter highligting
Expand Down

0 comments on commit 879d565

Please sign in to comment.