neovim: Highlight syntax in markdown code blocks

upower
Simon Bruder 2021-06-01 17:54:38 +02:00
parent e4b10573d4
commit ce57c9a62c
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 17 additions and 0 deletions

View File

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