feat: Adds better markdown support / plugins to nvim config.

This commit is contained in:
2025-11-09 01:26:12 -05:00
parent 18fc260a75
commit 97f3047989
2 changed files with 66 additions and 21 deletions

View File

@@ -1,20 +1,20 @@
-- Markdown specific key maps.
--
local todos = require("todo-comments")
local keywords = { "WARN", "WARNING", "IMPORTANT" }
-- Show all the warnings in the quick fix list.
vim.keymap.set(
"n",
"<leader>tw",
"<CMD>Trouble todo toggle filter = {tag = {WARN, IMPORTANT}}<CR>",
{ desc = "[T]odo [W]arnings" }
)
vim.keymap.set("n", "]w", function()
todos.jump_next({ keywords = keywords })
end, { desc = "Next [W]arning" })
vim.keymap.set("n", "[w", function()
todos.jump_prev({ keywords = keywords })
end, { desc = "Previous [W]arning" })
-- local todos = require("todo-comments")
-- local keywords = { "WARN", "WARNING", "IMPORTANT" }
--
-- -- Show all the warnings in the quick fix list.
-- vim.keymap.set(
-- "n",
-- "<leader>tw",
-- "<CMD>Trouble todo toggle filter = {tag = {WARN, IMPORTANT}}<CR>",
-- { desc = "[T]odo [W]arnings" }
-- )
--
-- vim.keymap.set("n", "]w", function()
-- todos.jump_next({ keywords = keywords })
-- end, { desc = "Next [W]arning" })
--
-- vim.keymap.set("n", "[w", function()
-- todos.jump_prev({ keywords = keywords })
-- end, { desc = "Previous [W]arning" })