add markdown render

This commit is contained in:
Yan Lin 2025-11-04 23:49:23 +01:00
parent 52ca9cd04a
commit 177a29e83d

View file

@ -196,6 +196,7 @@ in
cmp-dictionary
plenary-nvim # Required dependency for telescope
jupytext-nvim # Jupyter notebook viewing/editing support
render-markdown-nvim # Inline markdown rendering with conceals
];
# Keymaps
@ -261,6 +262,14 @@ in
action = ":lua open_file_with_system_app()<CR>";
options = { desc = "Open file with system default app"; };
}
# Markdown rendering
{
mode = "n";
key = "<leader>m";
action = ":RenderMarkdown toggle<CR>";
options = { desc = "Toggle markdown rendering"; };
}
];
# Additional Lua configuration for plugins that need custom setup
@ -380,6 +389,13 @@ in
end
end
-- Render-markdown setup (off by default, toggle with <space>+m)
require("render-markdown").setup({
enabled = false, -- Off by default, use <space>+m to toggle
file_types = { "markdown" },
render_modes = { "n", "c" }, -- Render in normal and command mode
})
'';
};
}