markdown stuff

This commit is contained in:
Dominic DiTaranto 2025-11-26 12:08:31 -05:00
parent 3bf0f1e8e6
commit f10466e063
4 changed files with 46 additions and 1 deletions

View file

@ -46,6 +46,7 @@ require("config.plugins.telescope")
require("config.plugins.theme")
require("config.plugins.treesitter")
require("config.plugins.venv-selector")
require("config.plugins.markdown-renderer")
-- Highlight On Yank
vim.api.nvim_create_autocmd("TextYankPost", {
@ -78,8 +79,8 @@ vim.lsp.config("lua_ls", {
settings = {
Lua = {
runtime = {
version = "LuaJIT",
},
version = "LuaJIT",
diagnostics = {
globals = {
"vim",

View file

@ -45,3 +45,12 @@ vim.keymap.set("n", "<leader>ds", ":lua vim.diagnostic.open_float()<CR>")
vim.keymap.set("n", "<leader>dn", function() vim.diagnostic.jump({ count = 1 }) end)
vim.keymap.set("n", "<leader>dp", function() vim.diagnostic.jump({ count = -1 }) end)
-- markdown autocommands
vim.api.nvim_create_autocmd('FileType', {
pattern = 'markdown',
callback = function()
vim.keymap.set("n", "<leader>[", "i- [ ] <CR><Esc>")
vim.keymap.set("n", "m", "^3<right>rx")
vim.keymap.set("n", "M", "^3<right>r ")
end
})

View file

@ -0,0 +1,28 @@
vim.pack.add({ "https://github.com/MeanderingProgrammer/render-markdown.nvim" })
require("render-markdown").setup({
file_types = { 'markdown', 'quarto' },
completions = { lsp = { enabled = true } },
checkbox = {
enabled = true,
render_modes = false,
bullet = false,
left_pad = 0,
right_pad = 1,
unchecked = {
icon = "󰄱 ",
highlight = "RenderMarkdownUnchecked",
scope_highlight = nil,
},
checked = {
icon = "󰱒 ",
highlight = "RenderMarkdownChecked",
scope_highlight = nil,
},
custom = {
todo = { raw = "[-]", rendered = "󰥔 ", highlight = "RenderMarkdownTodo", scope_highlight = nil },
},
scope_priority = nil,
},
})

View file

@ -96,6 +96,13 @@
"rev": "ca6452de1accc68a1062e72f58679caa488b501a",
"src": "https://github.com/MunifTanjim/prettier.nvim"
},
<<<<<<< Updated upstream
=======
"render-markdown.nvim": {
"rev": "6e0e8902dac70fecbdd8ce557d142062a621ec38",
"src": "https://github.com/MeanderingProgrammer/render-markdown.nvim"
},
>>>>>>> Stashed changes
"telescope.nvim": {
"rev": "83a3a713d6b2d2a408491a1b959e55a7fa8678e8",
"src": "https://github.com/nvim-telescope/telescope.nvim"