Skip to content

Commit

Permalink
mappings: fixed binding for trouble diagnostics and reworked lsp out …
Browse files Browse the repository at this point in the history
…with filter

Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Sep 27, 2024
1 parent 984344b commit 4364d14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ local function navigations()
})

keymaps.register("n", {
["<C-a>"] = [[<cmd>TodoTrouble<cr>]],
["<C-x>"] = [[<cmd>Trouble workspace_diagnostics<cr>]],
["<leader>t"] = [[<cmd>TodoTrouble toggle<cr>]],
["<leader>lw"] = [[<cmd>Trouble diagnostics toggle filter.severity=vim.diagnostic.severity.WARN<cr>]],
["<leader>le"] = [[<cmd>Trouble diagnostics toggle filter.severity=vim.diagnostic.severity.ERROR<cr>]],
["<leader>la"] = [[<cmd>Trouble diagnostics toggle<cr>]],
})
end

Expand Down

0 comments on commit 4364d14

Please sign in to comment.