neovim: Highlight syntax in markdown code blocks
This commit is contained in:
parent
e4b10573d4
commit
ce57c9a62c
|
@ -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; [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue