mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-17 17:38:01 +00:00
Guard matchup_treesitter_ vars to nvim
This commit is contained in:
@@ -77,12 +77,14 @@ function! s:init_options()
|
||||
|
||||
call s:init_option('matchup_matchpref', {})
|
||||
|
||||
call s:init_option('matchup_treesitter_enabled', has('nvim') ? v:true : v:false)
|
||||
call s:init_option('matchup_treesitter_disabled', {})
|
||||
call s:init_option('matchup_treesitter_include_match_words', v:false)
|
||||
call s:init_option('matchup_treesitter_enable_quotes', v:true)
|
||||
call s:init_option('matchup_treesitter_disable_virtual_text', v:true)
|
||||
call s:init_option('matchup_treesitter_stopline', 400)
|
||||
if has('nvim')
|
||||
call s:init_option('matchup_treesitter_enabled', has('nvim-0.11.2') ? v:true : v:false)
|
||||
call s:init_option('matchup_treesitter_disabled', {})
|
||||
call s:init_option('matchup_treesitter_include_match_words', v:false)
|
||||
call s:init_option('matchup_treesitter_enable_quotes', v:true)
|
||||
call s:init_option('matchup_treesitter_disable_virtual_text', v:true)
|
||||
call s:init_option('matchup_treesitter_stopline', 400)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:init_option(option, default)
|
||||
|
||||
Reference in New Issue
Block a user