Fix load neovim highlights only on neovim
This commit is contained in:
parent
48d44707a8
commit
126c3f47c4
1 changed files with 71 additions and 69 deletions
|
|
@ -245,7 +245,8 @@ call <sid>hi('SpellCap', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
|
||||||
call <sid>hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
|
call <sid>hi('SpellRare', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
|
||||||
call <sid>hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
|
call <sid>hi('SpellLocal', s:cdRed, s:cdBack, 'undercurl', s:cdRed)
|
||||||
|
|
||||||
|
" Make neovim specific groups load only on Neovim
|
||||||
|
if has("nvim")
|
||||||
" Neovim Treesitter:
|
" Neovim Treesitter:
|
||||||
call <sid>hiTS('@error', 'TSError', s:cdRed, {}, 'none', {})
|
call <sid>hiTS('@error', 'TSError', s:cdRed, {}, 'none', {})
|
||||||
call <sid>hiTS('@punctuation.delimiter', 'TSPunctDelimiter', s:cdFront, {}, 'none', {})
|
call <sid>hiTS('@punctuation.delimiter', 'TSPunctDelimiter', s:cdFront, {}, 'none', {})
|
||||||
|
|
@ -303,6 +304,20 @@ call <sid>hiTS('@text.uri', 'TSURI', s:cdYellowOrange, {}, 'none', {})
|
||||||
call <sid>hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {})
|
call <sid>hiTS('@tag', 'TSTag', s:cdBlue, {}, 'none', {})
|
||||||
call <sid>hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {})
|
call <sid>hiTS('@tag.delimiter', 'TSTagDelimiter', s:cdGray, {}, 'none', {})
|
||||||
|
|
||||||
|
" nvim-cmp
|
||||||
|
call <sid>hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindFunction', s:cdPink, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindProperty', s:cdFront, {}, 'none', {})
|
||||||
|
call <sid>hi('CmpItemKindUnit', s:cdFront, {}, 'none', {})
|
||||||
|
endif
|
||||||
|
|
||||||
" Markdown:
|
" Markdown:
|
||||||
call <sid>hi('markdownH1', s:cdBlue, {}, 'bold', {})
|
call <sid>hi('markdownH1', s:cdBlue, {}, 'bold', {})
|
||||||
call <sid>hi('markdownH2', s:cdBlue, {}, 'bold', {})
|
call <sid>hi('markdownH2', s:cdBlue, {}, 'bold', {})
|
||||||
|
|
@ -618,16 +633,3 @@ call <sid>hi('LspCxxHlSymNamespace', s:cdSilver, {}, 'none', {})
|
||||||
" Coc Explorer:
|
" Coc Explorer:
|
||||||
call <sid>hi('CocHighlightText', {}, s:cdSelection, 'none', {})
|
call <sid>hi('CocHighlightText', {}, s:cdSelection, 'none', {})
|
||||||
call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {})
|
call <sid>hi('CocExplorerIndentLine', s:cdCursorDark, {}, 'none', {})
|
||||||
|
|
||||||
" nvim-cmp
|
|
||||||
call <sid>hi('CmpItemAbbrDeprecated', s:cdGray, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemAbbrMatch', s:cdBlue, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemAbbrMatchFuzzy', s:cdBlue, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindVariable', s:cdLightBlue, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindInterface', s:cdLightBlue, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindText', s:cdLightBlue, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindFunction', s:cdPink, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindMethod ', s:cdPink, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindKeyword', s:cdFront, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindProperty', s:cdFront, {}, 'none', {})
|
|
||||||
call <sid>hi('CmpItemKindUnit', s:cdFront, {}, 'none', {})
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue