mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-09 23:48:16 -07:00
add todo-comments, trouble
This commit is contained in:
parent
bb10c66f29
commit
95d38fef5d
4 changed files with 59 additions and 5 deletions
|
|
@ -3,7 +3,6 @@ require "nvchad.mappings"
|
|||
-- add yours here
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
-- disable arrow keys
|
||||
map("n", "<Up>", "<nop>")
|
||||
map("n", "<Down>", "<nop>")
|
||||
|
|
@ -18,3 +17,13 @@ map("n", "<Leader>sd", ":s/", { desc = "Shortcut to sed" })
|
|||
map("n", "<Leader>qq", ":qa<CR>", { desc = "Write all and quit all" })
|
||||
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
vim.keymap.set("n", "]t", function()
|
||||
require("todo-comments").jump_next()
|
||||
end, { desc = "Next todo comment" })
|
||||
|
||||
vim.keymap.set("n", "[t", function()
|
||||
require("todo-comments").jump_prev()
|
||||
end, { desc = "Previous todo comment" })
|
||||
|
||||
map("n", "<Leader>tt", ":TodoTelescope<CR>", { desc = "View [T]odos in [T]elescope" })
|
||||
-- map("n", "<Leader>tT", ":TodoTrouble<CR>", { desc = "View [t]odos in [T]rouble" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue