diff 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
line wrap: on
line diff
--- a/vendor/vim-packs/srcery-vim/after/plugin/srcery.vim	Mon Aug 19 17:03:52 2024 +0900
+++ b/vendor/vim-packs/srcery-vim/after/plugin/srcery.vim	Mon Aug 19 17:04:13 2024 +0900
@@ -43,6 +43,7 @@
 let s:underline = g:srcery#palette.underline
 let s:undercurl = g:srcery#palette.undercurl
 let s:inverse = g:srcery#palette.inverse
+let s:strikethrough = g:srcery#palette.strikethrough
 
 " }}}
 " Sneak: {{{
@@ -218,6 +219,18 @@
 endif
 
 " }}}
+" nvim-cmp: "{{{
+
+if exists('g:loaded_cmp')
+  hi! link CmpItemAbbr Pmenu
+  hi! link CmpItemAbbrDeprecated Comment
+  hi! link CmpItemAbbrMatch Pmenu
+  hi! link CmpItemAbbrMatchFuzzy Pmenu
+  hi! link CmpItemKind Special
+  hi! link CmpItemMenu Pmenu
+endif
+
+" }}}
 " nvim: {{{
 
 if has('nvim')
@@ -250,8 +263,33 @@
     highlight! link TSVariable SrceryBrightWhite
 
     if has('nvim-0.8')
-      " TODO: Implement new nvim syntax
-      " Example could be taken from: https://github.com/dracula/vim/blob/b9f4f3a169266031d3744335595eee02a6e396c6/after/plugin/dracula.vim#L103
+      highlight! link @text.strong TSStrong
+      highlight! link @text.emphasis TSEmphasis
+      highlight! link @text.underline TSUnderline
+      highlight! link @text.warning TSWarning
+      highlight! link @text.danger TSDanger
+      highlight! link @constant.builtin TSConstBuiltin
+      highlight! link @field TSField
+      highlight! link @function.builtin TSFuncBuiltin
+      highlight! link @function.macro TSFuncMacro
+      highlight! link @function TSFunction
+      highlight! link @namespace TSNamespace
+      highlight! link @parameter TSParameter
+      highlight! link @property TSProperty
+      highlight! link @symbol TSSymbol
+      highlight! link @tag TSTag
+      highlight! link @tag.attribute TSTagAttribute
+      highlight! link @variable.builtin TSVariableBuiltin
+      highlight! link @type TSType
+      highlight! link @delimiter TSDelimiter
+      highlight! link @text.uri TSURI
+      highlight! link @variable TSVariable
+
+      call srcery#helper#Highlight('@markup.strong', s:none, s:none, s:bold)
+      call srcery#helper#Highlight('@markup.italic', s:none, s:none, s:italic)
+      call srcery#helper#Highlight('@markup.underline', s:none, s:none, s:underline)
+      call srcery#helper#Highlight('@markup.strikethrough', s:none, s:none, s:strikethrough)
+
     endif
   endif