diff --git a/.config/nvim/lua/klowner/plugins/lsp/lspconfig.lua b/.config/nvim/lua/klowner/plugins/lsp/lspconfig.lua index d316519..e9fee56 100644 --- a/.config/nvim/lua/klowner/plugins/lsp/lspconfig.lua +++ b/.config/nvim/lua/klowner/plugins/lsp/lspconfig.lua @@ -56,10 +56,10 @@ return { keymap.set("n", "d", vim.diagnostic.open_float, opts) -- show diagnostics for line opts.desc = "Go to previous diagnostic" - keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) -- jump to previous diagnostic in buffer + keymap.set("n", "[d", function () vim.diagnostic.jump({count=-1}) end, opts) -- jump to previous diagnostic in buffer opts.desc = "Go to next diagnostic" - keymap.set("n", "]d", vim.diagnostic.goto_next, opts) -- jump to next diagnostic in buffer + keymap.set("n", "]d", function () vim.diagnostic.jump({count=1}) end, opts) -- jump to next diagnostic in buffer opts.desc = "Show documentation for what is under cursor" keymap.set("n", "K", vim.lsp.buf.hover, opts) -- show documentation for what is under cursor