Added keybind for todo comments telescope search

This commit is contained in:
2025-01-24 18:25:37 +11:00
parent 5fea981e2e
commit d1a9f40a4a
2 changed files with 13 additions and 6 deletions

View File

@@ -192,6 +192,9 @@ e.g. in Python:
`:TodoTelescope` - search project todos with Telescope `:TodoTelescope` - search project todos with Telescope
`<leader>ts` will enter `:TodoTelescope cwd=` into the nvim command line. Can
leave blank for default functionality, or enter a directory to restrict the
search to.
--- ---
#### [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter) #### [Treesitter](https://github.com/nvim-treesitter/nvim-treesitter)

View File

@@ -1,8 +1,12 @@
return { return {
'folke/todo-comments.nvim', "folke/todo-comments.nvim",
event = 'VimEnter', event = "VimEnter",
dependencies = { dependencies = {
'nvim-lua/plenary.nvim' "nvim-lua/plenary.nvim",
}, },
opts = {} opts = {},
config = function()
require("todo-comments").setup()
vim.keymap.set("n", "<leader>ts", ":TodoTelescope cwd=")
end,
} }