markdown: adds the vim-markdown plugins

Co-Authored-by: iGor milhit <igor@milhit.ch>
kickstart-without-pandoc
iGor milhit 2023-09-19 16:33:33 +02:00
parent 35320a2a84
commit d0d30fea68
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 20 additions and 1 deletions

View File

@ -4,5 +4,5 @@
-- vim.opt.foldmethod="expr"
-- vim.opt.foldexpr="nvim_treesitter#foldexpr()"
vim.g.markdown_folding=1
-- vim.g.markdown_folding=1
-- vim.opt.foldlevel=1

View File

@ -0,0 +1,19 @@
-- Syntax highlighting, matching rules and mappings for the original Markdown
-- and extensions.
-- https://github.com/preservim/vim-Markdown
-- Configure the folding style and folding level
vim.cmd([[ let g:vim_markdown_folding_level = 1 ]])
vim.cmd([[ let g:vim_markdown_folding_style_pythonic = 1 ]])
-- Enable the YAML frontmatter support (no highlight yet?)
vim.cmd([[ let g:vim_markdown_frontmatter = 1 ]])
return {
{
"preservim/vim-markdown",
ft = {
'markdown'
}
}
}