Files
absolute-vim/lua/absolute/after/todo-comments.lua
T
David Ibia 81662b99b5 feat(nvim): phase 3 — replace nvim-cmp with blink.cmp and telescope with snacks.picker
Swap the completion engine to blink.cmp v1.x, dropping nvim-cmp,
its eight cmp-* sources, lspkind, and LuaSnip. Swap the picker
to snacks.picker, removing telescope.nvim and six telescope
extensions. LSP capabilities now sourced from blink.cmp; LSP
navigation keymaps and the colorscheme/keymaps/todo pickers move
to Snacks.picker. friendly-snippets is preserved as blink's
snippet source.
2026-05-02 21:25:57 +01:00

26 lines
616 B
Lua

local todo_comments = require("todo-comments")
todo_comments.setup({})
local opts = { noremap = true, silent = true }
opts.desc = "Jump to previous comment"
vim.keymap.set("n", "[t", function()
todo_comments.jump_prev()
end, opts)
opts.desc = "Jump to next todo comment"
vim.keymap.set("n", "]t", function()
todo_comments.jump_next()
end, opts)
opts.desc = "Open todo comments in picker"
vim.keymap.set("n", "<leader>pt", function()
Snacks.picker.todo_comments()
end, opts)
opts.desc = "Open Comments in Trouble"
vim.keymap.set("n", "<leader>tt", function()
vim.cmd([[TodoTrouble]])
end, opts)