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 a02e2765f44c8de5c7743d64f892645e98e1c71a.
This commit is contained in:
parent
d2135e8454
commit
873a556538
|
@ -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)
|
||||
|
|
Reference in a new issue