Added keybind for todo comments telescope search
This commit is contained in:
@@ -192,6 +192,9 @@ e.g. in Python:
|
||||
|
||||
|
||||
`: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)
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
return {
|
||||
'folke/todo-comments.nvim',
|
||||
event = 'VimEnter',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
opts = {}
|
||||
"folke/todo-comments.nvim",
|
||||
event = "VimEnter",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
opts = {},
|
||||
config = function()
|
||||
require("todo-comments").setup()
|
||||
vim.keymap.set("n", "<leader>ts", ":TodoTelescope cwd=")
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user