feat(nvim): add syntax highlight to Org tables

🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
This commit is contained in:
Price Hiller 2023-11-01 07:33:14 -05:00
parent 0ba5b094d1
commit 293d1e8f02
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 8 additions and 0 deletions

View File

@ -204,6 +204,9 @@ return {
NotifyTRACEBorder = { link = "NvimNotifyTrace" },
NotifyTRACEIcon = { link = "NvimNotifyTrace" },
NotifyTRACETitle = { link = "NvimNotifyTrace" },
org_table_sep = { fg = colors.springBlue, bg = colors.winterBlue },
org_table_header = { fg = colors.crystalBlue, bg = colors.winterBlue },
org_table = { bg = colors.winterBlue }
}
return overrides

View File

@ -0,0 +1,5 @@
syn match org_table_sep /\(|\|\(-\|=\)\|+\)/ contained
syn match org_table_header /|.*|/ contained contains=org_table_sep
syn match org_table_header_region /|.*|\_s*|\_s*\(-+\|\-\|=\).*|$/ contained contains=org_table_header
syn match org_table /|.*|$/ contained contains=org_table_sep,org_table_header_region
syn match org_table_region /^\s*|.*|$/ contains=org_table