1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
return {
{
"vimichael/floatingtodo.nvim",
config = function()
require("floatingtodo").setup({
target_file = "~/.local/share/vimwiki/todo.md",
border = "single", -- single, rounded, etc.
width = 0.8, -- width of window in % of screen size
height = 0.8, -- height of window in % of screen size
position = "center", -- topleft, topright, bottomleft, bottomright
})
vim.keymap.set("n", "<leader>tf", ":Td<CR>", { silent = true, desc = "TODO floating" })
end,
},
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {},
cmd = { "TodoTrouble", "TodoTelescope" },
config = function()
require("todo-comments").setup()
end,
init = function()
local wk = require("which-key")
wk.add({
mode = { "n", "v" },
{ "<leader>t", group = "TODO" },
})
end,
keys = {
{
"]t",
function()
require("todo-comments").jump_next()
end,
desc = "Next Todo Comment",
},
{
"[t",
function()
require("todo-comments").jump_prev()
end,
desc = "Previous Todo Comment",
},
{ "<leader>tt", "<cmd>Trouble todo toggle<cr>", desc = "Toggle TODO (Trouble)" },
{
"<leader>tT",
"<cmd>Trouble todo toggle filter = {tag = {TODO,FIX,FIXME}}<cr>",
desc = "Toggle Todo/Fix/Fixme (Trouble)",
},
{ "<leader>ft", "<cmd>TodoTelescope<cr>", desc = "Find Todo" },
{ "<leader>fT", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME<cr>", desc = "Find Todo/Fix/Fixme" },
},
},
}
|