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
|
`: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)
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user