revert(nvim): add mappings for cnext and cprev

Removing these keymaps as they conflict with C-j and C-k which navigates
between horizontal splits in tmux.

I also already have `]q`, `[q`, `]l` and `[l` that do the same `cnext`
and `lnext` navigation.

This reverts commit a02e2765f4.
This commit is contained in:
Oliver Davies 2023-07-28 09:02:15 +01:00
parent a02e2765f4
commit 000bb2fd5e

View file

@ -13,11 +13,6 @@ local on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>ca", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "<leader>f", function() vim.lsp.buf.format({ async = true }) end, opts)
vim.keymap.set("n", "<leader>rn", function() vim.lsp.buf.rename() end, opts)
vim.keymap.set("n", "<C-j>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<C-k>", "<cmd>cprev<CR>zz")
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
end
lsp.on_attach(on_attach)