diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 0eeb585..442fea3 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -28,8 +28,5 @@ vim.keymap.set('n', 'tg', builtin.live_grep, {}) vim.keymap.set('n', 'tb', builtin.buffers, {}) vim.keymap.set('n', 'th', builtin.help_tags, {}) --- Set folke/todo-comments.nvim toggle keybinding -vim.api.nvim_set_keymap("n", "td", "TodoTelescope", { noremap = true, silent = true }) - -- Set williamboman/mason.nvim open/close toggle vim.api.nvim_set_keymap("n", "ma", "Mason", { noremap = true, silent = true }) diff --git a/lua/plugins/todo.lua b/lua/plugins/todo.lua new file mode 100644 index 0000000..a4d29de --- /dev/null +++ b/lua/plugins/todo.lua @@ -0,0 +1,13 @@ +return { + { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + keys = { + { + "td", + "TodoTelescope", + desc = "Toggle todo list (todo-comments)", + } + } + } +}