From 07797b39851da045aa1bfd0289de0858a1377c48 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 18 Dec 2022 20:29:55 +0100 Subject: Switched to nvim and neovide --- after/syntax/log.vim | 24 ++++++++++++++++++++++++ after/syntax/markdown.vim | 19 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 after/syntax/log.vim create mode 100644 after/syntax/markdown.vim (limited to 'after/syntax') diff --git a/after/syntax/log.vim b/after/syntax/log.vim new file mode 100644 index 0000000..44223e6 --- /dev/null +++ b/after/syntax/log.vim @@ -0,0 +1,24 @@ + + +hi link Info NonText +hi link Pass DiffAdd + +syn match ERROR /TEST-UNEXPECTED-FAIL/ +syn match NonText /^\[[^\]]*\]/ + +syn match NonText /^ *\d\{1,2\}:\d\{1,2\}[.:]\d\{1,2\}[:0-9]*/ +syn match ErrorMsg / ERROR / +syn match ErrorMsg / FAIL / +syn match Error / WARNING / +syn match Info / INFO / fold +syn match Pass / PASS / fold + + +silent! lvimgrep /[^ ]* \(ERROR\|WARNING\|FAIL\) / % +lopen 12 + + + +" setlocal foldexpr=getline(v:lnum)=~'INFO' +" setlocal foldmethod=expr +" setlocal foldenable diff --git a/after/syntax/markdown.vim b/after/syntax/markdown.vim new file mode 100644 index 0000000..7bdbf46 --- /dev/null +++ b/after/syntax/markdown.vim @@ -0,0 +1,19 @@ +" Custom conceal +" syntax region todolist start="^\s*[\+-\*x ]" end="\s" contained keepend + + +syntax match markdownConceal "\[\ \]" contained conceal cchar= +syntax match markdownConceal "\[x\]" contained conceal cchar= +syntax match markdownConceal "*" contained conceal cchar= +syntax match markdownConceal "-" contained conceal cchar= +syntax match markdownConceal "+" contained conceal cchar= + +syntax region + \ markdownItemization + \ start="^\s*\(\[ \]\|[\+\-\*x]\)\s" + \ end="\s" + \ contains=markdownConceal + + +hi def link markdownConceal Todo +hi! link Conceal Text -- cgit v1.2.3