Skip to content

Commit

Permalink
Fix NeoVintageous#929 There is no syntax highlighting for <LocalLeader>
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardroche authored and eugenesvk committed Jan 6, 2024
1 parent cfe1036 commit cb85455
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt

### Fixed

* Fixed [#929](https://github.com/NeoVintageous/NeoVintageous/issues/929): There is no syntax highlighting for `<LocalLeader>`
* Fixed [#879](https://github.com/NeoVintageous/NeoVintageous/issues/879): RC file options only set on active view at startup
* Fixed [#922](https://github.com/NeoVintageous/NeoVintageous/issues/922): RC file reloading should reset options

Expand Down
2 changes: 1 addition & 1 deletion res/NeoVintageousrc.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contexts:
2: entity.name.neovintageourc

# Keys <{named}>
- match: (?i)\<(bs|bar|bslash|cr|csi|del|down|eol|end|enter|esc|ff|help|home|insert|leader|left|nl|nul|pagedown|pageup|return|right|space|tab|undo|up|lt|xcsi)>
- match: (?i)\<(bs|bar|bslash|cr|csi|del|down|eol|end|enter|esc|ff|help|home|insert|(local)?leader|left|nl|nul|pagedown|pageup|return|right|space|tab|undo|up|lt|xcsi)>
scope: storage.type.neovintageourc

# Keys <C-{named}>
Expand Down
9 changes: 9 additions & 0 deletions tests/syntax_test.neovintageousrc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ nnoremap <leader>d :ToggleSideBar<CR>
" ^^^^^^^^ storage.type
" ^^^^ storage.type

nnoremap <Leader>d :ToggleSideBar<CR>
" ^^ storage.type

nnoremap <leader>d :ToggleSideBar<CR> " x
" ^^^ -comment

Expand All @@ -292,6 +295,12 @@ nnoremap <leader>n :noremap x y<CR>
" ^^^^^^^^^^^^^^ -storage
" ^^^^ storage.type

nnoremap <localleader>d :ToggleSideBar<CR>
" ^^ storage.type

nnoremap <LocalLeader>d :ToggleSideBar<CR>
" ^^ storage.type

" control-key *control* *ctrl* *<C-*
" nnoremap <C-...> x
nnoremap <C-y> 3<C-y>
Expand Down

0 comments on commit cb85455

Please sign in to comment.