From 04379d52876dedf58df761250d6d51e99a2ab61b Mon Sep 17 00:00:00 2001 From: James Chung Date: Sun, 7 Jul 2024 14:40:05 -0500 Subject: [PATCH] update todo-comments keybindings --- lua/config/keymaps.lua | 3 --- lua/plugins/todo.lua | 13 +++++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 lua/plugins/todo.lua 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)", + } + } + } +}