Skip to content

Commit

Permalink
feat(trouble-nvim): add mappings for todo-comments.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
manuuurino committed Apr 14, 2024
1 parent 53a2ce5 commit 7528905
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/astrocommunity/diagnostics/trouble-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ return {
{ "<Cmd>TroubleToggle document_diagnostics<CR>", desc = "Document Diagnostics (Trouble)" }
maps.n[prefix .. "l"] = { "<Cmd>TroubleToggle loclist<CR>", desc = "Location List (Trouble)" }
maps.n[prefix .. "q"] = { "<Cmd>TroubleToggle quickfix<CR>", desc = "Quickfix List (Trouble)" }
if require("astrocore").is_available "todo-comments.nvim" then
maps.n["<leader>xt"] = {
"<cmd>TodoTrouble<cr>",
desc = "Todo (Trouble)",
}
maps.n["<leader>xT"] = {
"<cmd>TodoTrouble keywords=TODO,FIX,FIXME<cr>",
desc = "Todo/Fix/Fixme (Trouble)",
}
end
end,
},
},
Expand Down

0 comments on commit 7528905

Please sign in to comment.