diff options
author | Max Christian Pohle | 2022-12-18 20:29:55 +0100 |
---|---|---|
committer | Max Christian Pohle | 2022-12-18 20:56:01 +0100 |
commit | 07797b39851da045aa1bfd0289de0858a1377c48 (patch) | |
tree | 4ca5d2b26d2ca9d01fc052fce5a26f88364a53d0 /after/syntax | |
parent | 1086af63639d2a108f39ae077e0e201dddf4f523 (diff) | |
download | vim-07797b39851da045aa1bfd0289de0858a1377c48.tar.bz2 vim-07797b39851da045aa1bfd0289de0858a1377c48.zip |
Switched to nvim and neovide
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/log.vim | 24 | ||||
-rw-r--r-- | after/syntax/markdown.vim | 19 |
2 files changed, 43 insertions, 0 deletions
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 @@ | |||
1 | |||
2 | |||
3 | hi link Info NonText | ||
4 | hi link Pass DiffAdd | ||
5 | |||
6 | syn match ERROR /TEST-UNEXPECTED-FAIL/ | ||
7 | syn match NonText /^\[[^\]]*\]/ | ||
8 | |||
9 | syn match NonText /^ *\d\{1,2\}:\d\{1,2\}[.:]\d\{1,2\}[:0-9]*/ | ||
10 | syn match ErrorMsg / ERROR / | ||
11 | syn match ErrorMsg / FAIL / | ||
12 | syn match Error / WARNING / | ||
13 | syn match Info / INFO / fold | ||
14 | syn match Pass / PASS / fold | ||
15 | |||
16 | |||
17 | silent! lvimgrep /[^ ]* \(ERROR\|WARNING\|FAIL\) / % | ||
18 | lopen 12 | ||
19 | |||
20 | |||
21 | |||
22 | " setlocal foldexpr=getline(v:lnum)=~'INFO' | ||
23 | " setlocal foldmethod=expr | ||
24 | " 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 @@ | |||
1 | " Custom conceal | ||
2 | " syntax region todolist start="^\s*[\+-\*x ]" end="\s" contained keepend | ||
3 | |||
4 | |||
5 | syntax match markdownConceal "\[\ \]" contained conceal cchar= | ||
6 | syntax match markdownConceal "\[x\]" contained conceal cchar= | ||
7 | syntax match markdownConceal "*" contained conceal cchar= | ||
8 | syntax match markdownConceal "-" contained conceal cchar= | ||
9 | syntax match markdownConceal "+" contained conceal cchar= | ||
10 | |||
11 | syntax region | ||
12 | \ markdownItemization | ||
13 | \ start="^\s*\(\[ \]\|[\+\-\*x]\)\s" | ||
14 | \ end="\s" | ||
15 | \ contains=markdownConceal | ||
16 | |||
17 | |||
18 | hi def link markdownConceal Todo | ||
19 | hi! link Conceal Text | ||