Migrate '.vim/after/syntax' to neovim

main
Hektor Misplon 2025-10-19 20:32:37 +02:00
parent 85d56f97d1
commit f3188f7b4b
4 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,7 @@
vim.cmd([[
syn match Todo /TODO/
syn match Todo /FIXME/
syn match Todo /FIX/
syn match Todo /QUESTION/
syn match Todo /NOTE/
]])

View File

@ -1,3 +1,4 @@
vim.cmd([[
" Override the pandoc-syntax highlighting colors for more subtle citations
hi! link pandocPCite Comment
hi! link pandocICite Comment
@ -5,9 +6,6 @@ hi! link pandocCiteKey Comment
hi! link pandocCiteAnchor Comment
hi! link pandocCiteLocator Comment
" Don't show the CiteKey within the CiteLocator
syn match pandocCiteKey /\v\[[^]]+\]/ contained
" Match cloze delimiters e.g. `{{c1::` and `}}`
syn match ClozeDelimiter /{{c\d\+::/ conceal containedin=pandocUListItem,pandocListItem
syn match ClozeDelimiter /}}/ conceal containedin=pandocUListItem,pandocListItem
@ -23,4 +21,6 @@ syn match TaskWikiTaskUuid containedin=TaskWikiTask /\v#([A-Z]:)?[0-9a-fA-F]{8}-
syn match TaskWikiTaskUuid containedin=TaskWikiTask /\v#([A-Z]:)?[0-9a-fA-F]{8}$/
highlight link TaskWikiTaskUuid Comment
:runtime! syntax/_comment_keywords.vim
]])
vim.cmd.runtime("syntax/_comment_keywords.lua")

View File

@ -1,5 +1,7 @@
vim.cmd([[
syn keyword Operator \+ conceal cchar=¬
syn keyword Operator , conceal cchar=
syn keyword Operator ; conceal cchar=
]])
:runtime! syntax/_comment_keywords.vim
vim.cmd.runtime("syntax/_comment_keywords.lua")

View File

@ -1,3 +1,4 @@
vim.cmd([[
syntax keyword Statement define conceal cchar=
syn keyword Operator not conceal cchar=¬
@ -35,5 +36,6 @@ syn keyword Operator phi conceal cchar=φ
syn keyword Operator chi conceal cchar=χ
syn keyword Operator psi conceal cchar=ψ
syn keyword Operator omega conceal cchar=ω
]])
:runtime! syntax/_comment_keywords.vim
vim.cmd.runtime("syntax/_comment_keywords.lua")