diff --git a/home/neovim.nix b/home/neovim.nix index bf067de4..8d129525 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -391,6 +391,15 @@ in -- Make faster vim.keymap.set({ 'n', 'v' }, '', '', { silent = true }) + + -- Diagnostic keymaps + local wk = require("which-key") + wk.register({ + ["[d"] = { vim.diagnostic.goto_prev, "Prev [D]iagnostic" }, + ["]d"] = { vim.diagnostic.goto_next, "Next [D]iagnostic" }, + ["d"] = { vim.diagnostic.open_float, "Open Floating [D]iagnostics" }, + ["q"] = { vim.diagnostic.setloclist, "Open [Q]uickfix Diagnostics" }, + }) ''; extraPackages = [