From d2135e8454debda98d2efb1874ac587dd5164ef0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 26 Jul 2023 09:53:23 +0100 Subject: [PATCH] feat(nvim): add mappings for cnext and cprev --- lua/opdavies/lsp/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/opdavies/lsp/init.lua b/lua/opdavies/lsp/init.lua index ca34699..2b75f1b 100644 --- a/lua/opdavies/lsp/init.lua +++ b/lua/opdavies/lsp/init.lua @@ -13,6 +13,11 @@ local on_attach = function(client, bufnr) vim.keymap.set("n", "ca", function() vim.lsp.buf.code_action() end, opts) vim.keymap.set("n", "f", function() vim.lsp.buf.format({ async = true }) end, opts) vim.keymap.set("n", "rn", function() vim.lsp.buf.rename() end, opts) + + vim.keymap.set("n", "", "cnextzz") + vim.keymap.set("n", "", "cprevzz") + vim.keymap.set("n", "j", "lprevzz") + vim.keymap.set("n", "k", "lnextzz") end lsp.on_attach(on_attach)