From 7a7951b2338d8694d4ad25ee2b2a48f79c264627 Mon Sep 17 00:00:00 2001 From: Enno Date: Tue, 9 Apr 2024 06:57:20 +0200 Subject: [PATCH] add back plug-in specifics --- syntax/pandoc.vim | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/syntax/pandoc.vim b/syntax/pandoc.vim index 853f6c9..0a6fb5e 100644 --- a/syntax/pandoc.vim +++ b/syntax/pandoc.vim @@ -1,13 +1,13 @@ scriptencoding utf-8 -" + +" Vim syntax file " Language: Pandoc (superset of Markdown) " Maintainer: Felipe Morales " Maintainer: Caleb Maclennan -" Upstream: https://github.com/vim-pandoc/vim-pandoc-syntax " " Contributor: David Sanson -" Jorge Israel Peña -" Christian Brabandt @chrisbra +" Jorge Israel Peña +" Christian Brabandt @chrisbra " Original Author: Jeremy Schultz " Version: 5.0 " Last Change: 2024 Apr 08 @@ -223,6 +223,16 @@ command! -buffer -nargs=1 -complete=syntax PandocUnhighlight call DisableEmbedsf " BASE: syntax clear syntax spell toplevel + +" apply extra settings: {{{1 +if g:pandoc#syntax#colorcolumn == 1 + exe 'setlocal colorcolumn='.string(&textwidth+5) +elseif g:pandoc#syntax#colorcolumn == 2 + exe 'setlocal colorcolumn='.join(range(&textwidth+5, 2*&columns), ',') +endif +if g:pandoc#syntax#conceal#use != 0 + setlocal conceallevel=2 +endif " }}}1 " Syntax Rules: {{{1