feat(nvim): add syntax highlight to Org tables
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
This commit is contained in:
parent
0ba5b094d1
commit
293d1e8f02
@ -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
|
||||
|
5
dots/.config/nvim/syntax/org.vim
Normal file
5
dots/.config/nvim/syntax/org.vim
Normal 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
|
Loading…
Reference in New Issue
Block a user