Skip to content

Commit

Permalink
feat(ts): highlight symbols as TSField in Ruby/Elixir files
Browse files Browse the repository at this point in the history
Closes #112
  • Loading branch information
antoineco committed Jan 24, 2025
1 parent e8ebe64 commit e1c1491
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion colors/sonokai.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let s:configuration = sonokai#get_configuration()
let s:palette = sonokai#get_palette(s:configuration.style, s:configuration.colors_override)
let s:path = expand('<sfile>:p') " the path of this script
let s:last_modified = 'Wed Jan 15 14:57:34 UTC 2025'
let s:last_modified = 'Fri Jan 24 13:30:42 UTC 2025'
let g:sonokai_loaded_file_types = []

if !(exists('g:colors_name') && g:colors_name ==# 'sonokai' && s:configuration.better_performance)
Expand Down Expand Up @@ -2627,6 +2627,11 @@ highlight! link rubyAccess Red
highlight! link rubyMacro Red
highlight! link rubySymbol Fg
" }}}
" nvim-treesitter/nvim-treesitter {{{
if has('nvim-0.8')
highlight! link @string.special.symbol.ruby TSField
endif
" }}}
" syn_end }}}
" syn_begin: haskell {{{
" haskell-vim: https://github.com/neovimhaskell/haskell-vim{{{
Expand Down Expand Up @@ -2714,6 +2719,11 @@ highlight! link elixirCallbackDefine Red
highlight! link elixirStructDefine Red
highlight! link elixirExUnitMacro Red
" }}}
" nvim-treesitter/nvim-treesitter {{{
if has('nvim-0.8')
highlight! link @string.special.symbol.elixir TSField
endif
" }}}
" syn_end }}}
" syn_begin: lisp {{{
" builtin: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_LISP{{{
Expand Down

0 comments on commit e1c1491

Please sign in to comment.