Skip to content

Commit

Permalink
feat(nvim): todo keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 22, 2024
1 parent 434bc8c commit 8007f43
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nvim-fredrik/lua/fredrik/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,25 @@ function M.setup_fzf_keymaps()
}
end

function M.setup_todo_keymaps()
return {
{
"<leader>st",
function()
require("todo-comments.fzf").todo()
end,
desc = "Todo",
},
{
"<leader>sT",
function()
require("todo-comments.fzf").todo({ keywords = { "TODO", "FIX", "FIXME" } })
end,
desc = "Todo/Fix/Fixme",
},
}
end

function M.setup_auto_session_keymaps()
return {
-- Will use Telescope if installed or a vim.ui.select picker otherwise
Expand Down
1 change: 1 addition & 0 deletions nvim-fredrik/lua/fredrik/plugins/todo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ return {
event = "VeryLazy",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {},
keys = require("fredrik.config.keymaps").setup_todo_keymaps(),
},
}

0 comments on commit 8007f43

Please sign in to comment.