nvim: Exchange headlines plugin for markdown.nvim
To render markdown highlights and a few other things (list items, code blocks, callouts, etc) we switched from headlines.nvim to markdown.nvim (internally ralled render-markdown). This now also enables quick switching between showing the rendered output and raw markdown (`<leader>pp`).
This commit is contained in:
parent
32e743edba
commit
7af5fca62a
2 changed files with 20 additions and 7 deletions
|
|
@ -40,12 +40,24 @@ local prose_plugs = {
|
|||
},
|
||||
},
|
||||
},
|
||||
-- displays prettier headlines mimicking the ones in emacs orgmode
|
||||
-- displays prettier md rendering
|
||||
{
|
||||
"lukas-reineke/headlines.nvim",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
config = true,
|
||||
"MeanderingProgrammer/markdown.nvim",
|
||||
main = "render-markdown",
|
||||
opts = {},
|
||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
|
||||
ft = writing_ft,
|
||||
keys = {
|
||||
{
|
||||
"<leader>pp",
|
||||
function()
|
||||
require("render-markdown").toggle()
|
||||
end,
|
||||
silent = true,
|
||||
desc = "toggle md rendering",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- generate an auto-updating html preview for md files
|
||||
-- uses the very nice peek if deno is available, otherwise falls back to markdown-preview
|
||||
|
|
@ -84,7 +96,7 @@ local prose_plugs = {
|
|||
},
|
||||
cmd = { "PasteImage" },
|
||||
keys = {
|
||||
{ "<leader>pp", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
|
||||
{ "<leader>pi", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
|
||||
},
|
||||
ft = writing_ft,
|
||||
},
|
||||
|
|
@ -184,6 +196,7 @@ local prose_plugs = {
|
|||
"barreiroleo/ltex_extra.nvim",
|
||||
branch = "dev",
|
||||
},
|
||||
{ "let-def/texpresso.vim", ft = { "tex" } },
|
||||
}
|
||||
|
||||
return prose_plugs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue