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; [ {