From 3f9d4018db298fe7c8b48ae49e7420240a9786ff Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Sat, 1 Jul 2023 23:43:52 +0200 Subject: [PATCH] LSP bind fix --- nvim/.config/nvim/plugin/after/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/plugin/after/lsp.lua b/nvim/.config/nvim/plugin/after/lsp.lua index a85b64c..145a859 100644 --- a/nvim/.config/nvim/plugin/after/lsp.lua +++ b/nvim/.config/nvim/plugin/after/lsp.lua @@ -38,8 +38,8 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts) vim.keymap.set("n", "vws", function() vim.lsp.buf.workspace_symbol() end, opts) vim.keymap.set("n", "vd", function() vim.diagnostic.open_float() end, opts) - vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts) - vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts) + vim.keymap.set("n", "fd", function() vim.diagnostic.goto_next() end, opts) + vim.keymap.set("n", "ffd", function() vim.diagnostic.goto_prev() end, opts) vim.keymap.set("n", "vca", function() vim.lsp.buf.code_action() end, opts) vim.keymap.set("n", "vrr", function() vim.lsp.buf.references() end, opts) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts)