From 7ebc88268bea5808eced1c9585c0705a90b92488 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 29 Jan 2021 11:25:36 +0530 Subject: [PATCH] nvim: colors: yolokai: Update pandoc and yaml syntax highlighting This improves the highlighting for files written in pandoc markdown. It seems having the rainbow parentheses plugin active, results in overwriting the syntax highlighting for URLs. --- nvim/.config/nvim/after/ftplugin/markdown.vim | 4 ++++ nvim/.config/nvim/colors/yolokai.vim | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/after/ftplugin/markdown.vim b/nvim/.config/nvim/after/ftplugin/markdown.vim index 4f1c0f5..b62d4d7 100644 --- a/nvim/.config/nvim/after/ftplugin/markdown.vim +++ b/nvim/.config/nvim/after/ftplugin/markdown.vim @@ -13,3 +13,7 @@ let g:pandoc#formatting#textwidth = 79 let g:pandoc#formatting#mode = "hA" let g:pandoc#completion#bib#mode = 'citeproc' let g:pandoc#syntax#codeblocks#embeds#langs = ["c", "rust", "haskell", "literatehaskell=lhaskell", "bash=sh"] + +" Rainbow Parentheses affects syntax highlighting for URL links. Turn it off +" for markdown files. +autocmd BufEnter RainbowToggleOff diff --git a/nvim/.config/nvim/colors/yolokai.vim b/nvim/.config/nvim/colors/yolokai.vim index e81e7ec..bad0df7 100644 --- a/nvim/.config/nvim/colors/yolokai.vim +++ b/nvim/.config/nvim/colors/yolokai.vim @@ -482,7 +482,9 @@ local highlight_groups = { plantumlColonLine = {}, --[[ 4.3.33. YAML ]] - yamlKey = 'Label', + yamlKey = 'Label', + yamlBlockMappingKey = { bg=black, fg=red, style=NONE }, + yamlPlainScalar = { bg=black, fg=green, style=NONE }, --[[ 4.3.34. Git ]] gitrebaseBreak = 'Keyword' , @@ -638,6 +640,13 @@ local highlight_groups = { pandocDelimitedCodeBlockLanguage = 'Comment', pandocListItemBullet = { bg=black, fg=purple, style=NONE }, pandocUListItemBullet = { bg=black, fg=purple, style=NONE }, + pandocReferenceURL = { bg=black, fg=pink, style={'underline' }}, + pandocReferenceDefinition = { bg=black, fg=aqua, style={'bold' }}, + pandocEmphasis = { bg=black, fg=purple, style={'italic' }}, + pandocStrong = { bg=black, fg=purple, style={'bold' }}, + pandocStrongEmphasis = { bg=black, fg=purple, style={'bold', 'italic' }}, + pandocStrongInEmphasis = 'pandocStrongEmphasis', + pandocEmphasisInStrong = 'pandocStrongEmphasis', } -- We do not care about terminals which do not support 256 colors