updates for lazyvim v13 and move to snacks

This commit is contained in:
Daylin Morgan 2024-11-12 14:16:50 -06:00
parent 1b0c04b13f
commit 02aadf8483
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -18,11 +18,9 @@ return {
vim.cmd([[do FileType]]) vim.cmd([[do FileType]])
end, end,
}, },
{
{ "MeanderingProgrammer/render-markdown.nvim",
"MeanderingProgrammer/markdown.nvim",
opts = { opts = {
file_types = { "markdown", "norg", "rmd", "org" },
code = { code = {
sign = false, sign = false,
width = "block", width = "block",
@ -36,7 +34,7 @@ return {
ft = { "markdown", "norg", "rmd", "org" }, ft = { "markdown", "norg", "rmd", "org" },
config = function(_, opts) config = function(_, opts)
require("render-markdown").setup(opts) require("render-markdown").setup(opts)
LazyVim.toggle.map("<leader>um", { Snacks.toggle({
name = "Render Markdown", name = "Render Markdown",
get = function() get = function()
return require("render-markdown.state").enabled return require("render-markdown.state").enabled
@ -49,7 +47,7 @@ return {
m.disable() m.disable()
end end
end, end,
}) }):map("<leader>um")
end, end,
} },
} }