feat: Reworking nvim configuration

This commit is contained in:
2024-12-20 09:48:54 -05:00
parent 876e7f6d0e
commit 6cdf85b4e3
13 changed files with 426 additions and 567 deletions

View File

@@ -4,26 +4,42 @@ return {
"nvim-lua/plenary.nvim",
"folke/trouble.nvim",
},
opts = {},
config = function()
local todos = require("todo-comments")
todos.setup({
keywords = {
-- Adds the important keyword, I primarily use this in markdown
-- documents to be able to jump and color appropriately.
FIX = { alt = { "IMPORTANT" } },
},
})
vim.keymap.set("n", "<leader>tq", "<CMD>Trouble todo toggle<CR>", { desc = "[T]odo [Q]uick fix list." })
vim.keymap.set("n", "<leader><leader>t", "<CMD>TodoTelescope<CR>", { desc = "[T]odo telescope list." })
vim.keymap.set("n", "<leader>tl", "<CMD>TodoLocList<CR>", { desc = "[T]odo [L]ocation list." })
vim.keymap.set("n", "]t", function()
todos.jump_next()
end, { desc = "Next [T]odo" })
vim.keymap.set("n", "[t", function()
todos.jump_prev()
end, { desc = "Previous [T]odo" })
end,
opts = {
keywords = {
-- Adds the important keyword, I primarily use this in markdown
-- documents to be able to jump and color appropriately.
FIX = { alt = { "IMPORTANT" } },
},
},
keys = {
{
"<leader>tq",
"<CMD>Trouble todo toggle<CR>",
desc = "Todo quick fix list.",
},
{
"<leader><leader>t",
"<CMD>TodoTelescope<CR>",
desc = "Todo telescope list.",
},
{
"<leader>tl",
"<CMD>TodoLocList<CR>",
desc = "Todo location list.",
},
{
"]t",
function()
require("todo-comments").jump_next()
end,
desc = "Next todo.",
},
{
"[t",
function()
require("todo-comments").jump_prev()
end,
desc = "Previous todo.",
},
},
}