mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-10-24 05:23:19 +00:00
81662b99b5
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.
26 lines
616 B
Lua
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)
|