From 4e4ceeb6fb83ffa08c38748d7780bb0bd14d5dca Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 1 Aug 2023 12:15:58 -0400 Subject: [PATCH] feat(neovim): Highlight markdown code blocks This adds syntax highlighting to code blocks with vim-markdown while keeping pretty much everything else the same. --- home/neovim.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/neovim.nix b/home/neovim.nix index 3e8ba86..2e663ae 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -386,6 +386,16 @@ in nnoremap c (vimtex-env-change) ''; } + { + plugin = vim-markdown; + config = /* vim */ '' + let g:vim_markdown_folding_disabled = 1 + let g:vim_markdown_conceal = 0 + let g:vim_markdown_frontmatter = 1 + let g:vim_markdown_toml_frontmatter = 1 + let g:vim_markdown_json_frontmatter = 1 + ''; + } { plugin = alpha-nvim; type = "lua";