neovim: Highlight syntax in markdown code blocks

This commit is contained in:
Simon Bruder 2021-06-01 17:54:38 +02:00
parent e4b10573d4
commit ce57c9a62c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -166,6 +166,23 @@ in
autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype yaml 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 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; [ plugins = (with pkgs.vimPlugins; [
{ {