Skip to content

Commit

Permalink
update todo-comments keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChung committed Jul 7, 2024
1 parent 9fc0289 commit 04379d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ vim.keymap.set('n', '<leader>tg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>tb', builtin.buffers, {})
vim.keymap.set('n', '<leader>th', builtin.help_tags, {})

-- Set folke/todo-comments.nvim toggle keybinding
vim.api.nvim_set_keymap("n", "<leader>td", "<Cmd>TodoTelescope<CR>", { noremap = true, silent = true })

-- Set williamboman/mason.nvim open/close toggle
vim.api.nvim_set_keymap("n", "<leader>ma", "<Cmd>Mason<CR>", { noremap = true, silent = true })
13 changes: 13 additions & 0 deletions lua/plugins/todo.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
return {
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
keys = {
{
"<leader>td",
"<Cmd>TodoTelescope<CR>",
desc = "Toggle todo list (todo-comments)",
}
}
}
}

0 comments on commit 04379d5

Please sign in to comment.