Skip to content

Commit

Permalink
feat(nvim): add diagnostics keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Dec 17, 2023
1 parent a00e011 commit ec20055
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,15 @@ in
-- Make <leader> faster
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { 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" },
["<localleader>d"] = { vim.diagnostic.open_float, "Open Floating [D]iagnostics" },
["<localleader>q"] = { vim.diagnostic.setloclist, "Open [Q]uickfix Diagnostics" },
})
'';

extraPackages = [
Expand Down

0 comments on commit ec20055

Please sign in to comment.