comparison vendor/vim-packs/srcery-vim/after/plugin/srcery.vim @ 726:78469331407e

Update syntaxes
author nanaya <me@nanaya.net>
date Mon, 19 Aug 2024 17:04:13 +0900
parents 1e0f578f6752
children
comparison
equal deleted inserted replaced
725:0a896ffe3029 726:78469331407e
41 let s:bold = g:srcery#palette.bold 41 let s:bold = g:srcery#palette.bold
42 let s:italic = g:srcery#palette.italic 42 let s:italic = g:srcery#palette.italic
43 let s:underline = g:srcery#palette.underline 43 let s:underline = g:srcery#palette.underline
44 let s:undercurl = g:srcery#palette.undercurl 44 let s:undercurl = g:srcery#palette.undercurl
45 let s:inverse = g:srcery#palette.inverse 45 let s:inverse = g:srcery#palette.inverse
46 let s:strikethrough = g:srcery#palette.strikethrough
46 47
47 " }}} 48 " }}}
48 " Sneak: {{{ 49 " Sneak: {{{
49 50
50 if exists('g:loaded_sneak_plugin') 51 if exists('g:loaded_sneak_plugin')
213 call srcery#helper#Highlight('TelescopeNormal', s:white, s:none) 214 call srcery#helper#Highlight('TelescopeNormal', s:white, s:none)
214 call srcery#helper#Highlight('TelescopeSelection', s:green, s:none, s:bold) 215 call srcery#helper#Highlight('TelescopeSelection', s:green, s:none, s:bold)
215 call srcery#helper#Highlight('TelescopeMatching', s:magenta) 216 call srcery#helper#Highlight('TelescopeMatching', s:magenta)
216 call srcery#helper#Highlight('TelescopeSelectionCaret', s:magenta) 217 call srcery#helper#Highlight('TelescopeSelectionCaret', s:magenta)
217 call srcery#helper#Highlight('TelescopePromptPrefix', s:bright_yellow) 218 call srcery#helper#Highlight('TelescopePromptPrefix', s:bright_yellow)
219 endif
220
221 " }}}
222 " nvim-cmp: "{{{
223
224 if exists('g:loaded_cmp')
225 hi! link CmpItemAbbr Pmenu
226 hi! link CmpItemAbbrDeprecated Comment
227 hi! link CmpItemAbbrMatch Pmenu
228 hi! link CmpItemAbbrMatchFuzzy Pmenu
229 hi! link CmpItemKind Special
230 hi! link CmpItemMenu Pmenu
218 endif 231 endif
219 232
220 " }}} 233 " }}}
221 " nvim: {{{ 234 " nvim: {{{
222 235
248 highlight! link TSDelimiter SrceryWhite 261 highlight! link TSDelimiter SrceryWhite
249 highlight! link TSURI SrceryGreen 262 highlight! link TSURI SrceryGreen
250 highlight! link TSVariable SrceryBrightWhite 263 highlight! link TSVariable SrceryBrightWhite
251 264
252 if has('nvim-0.8') 265 if has('nvim-0.8')
253 " TODO: Implement new nvim syntax 266 highlight! link @text.strong TSStrong
254 " Example could be taken from: https://github.com/dracula/vim/blob/b9f4f3a169266031d3744335595eee02a6e396c6/after/plugin/dracula.vim#L103 267 highlight! link @text.emphasis TSEmphasis
268 highlight! link @text.underline TSUnderline
269 highlight! link @text.warning TSWarning
270 highlight! link @text.danger TSDanger
271 highlight! link @constant.builtin TSConstBuiltin
272 highlight! link @field TSField
273 highlight! link @function.builtin TSFuncBuiltin
274 highlight! link @function.macro TSFuncMacro
275 highlight! link @function TSFunction
276 highlight! link @namespace TSNamespace
277 highlight! link @parameter TSParameter
278 highlight! link @property TSProperty
279 highlight! link @symbol TSSymbol
280 highlight! link @tag TSTag
281 highlight! link @tag.attribute TSTagAttribute
282 highlight! link @variable.builtin TSVariableBuiltin
283 highlight! link @type TSType
284 highlight! link @delimiter TSDelimiter
285 highlight! link @text.uri TSURI
286 highlight! link @variable TSVariable
287
288 call srcery#helper#Highlight('@markup.strong', s:none, s:none, s:bold)
289 call srcery#helper#Highlight('@markup.italic', s:none, s:none, s:italic)
290 call srcery#helper#Highlight('@markup.underline', s:none, s:none, s:underline)
291 call srcery#helper#Highlight('@markup.strikethrough', s:none, s:none, s:strikethrough)
292
255 endif 293 endif
256 endif 294 endif
257 295
258 " }}} 296 " }}}
259 endif 297 endif