From ce57c9a62c2822bb00cd0ebe463a8890faa811fa Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 1 Jun 2021 17:54:38 +0200 Subject: [PATCH] neovim: Highlight syntax in markdown code blocks --- users/simon/modules/neovim.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/users/simon/modules/neovim.nix b/users/simon/modules/neovim.nix index 5e53db5..2850783 100644 --- a/users/simon/modules/neovim.nix +++ b/users/simon/modules/neovim.nix @@ -166,6 +166,23 @@ in autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab autocmd Filetype yaml setlocal ts=2 sw=2 sts=2 expandtab autocmd Filetype zsh setlocal ts=4 sw=4 sts=4 expandtab + + " Markdown syntax highlighting in code blocks + let g:markdown_fenced_languages = [ + \'bash=sh', + \'c', + \'cpp', + \'css', + \'haskell', + \'html', + \'javascript', + \'json', + \'nix', + \'python', + \'rust', + \'sh', + \'tex', + \] ''; plugins = (with pkgs.vimPlugins; [ {