diff --git a/test/new/common/bootstrap.vim b/test/new/common/bootstrap.vim index 49c773e..3987022 100644 --- a/test/new/common/bootstrap.vim +++ b/test/new/common/bootstrap.vim @@ -3,23 +3,6 @@ set packpath-=~/.config/nvim packpath-=~/.config/nvim/after let &rtp = '../../..,' . &rtp let &rtp = &rtp . ',../../../after' -if $TESTS_ENABLE_TREESITTER - let s:path = simplify(expand(':h').'/../../..') - let &rtp = s:path.'/test/vader/plugged/nvim-treesitter,' . &rtp - let &rtp .= ','.s:path.'/test/vader/plugged/nvim-treesitter/after' - - runtime! plugin/nvim-treesitter.vim - runtime! plugin/nvim-treesitter.lua - - lua < 0 call matchup#test#finished() endif -let s:expect_ts_engine = +$TESTS_ENABLE_TREESITTER +let g:matchup_treesitter_enabled = v:false +let s:expect_ts_engine = $MODE == 0 ? 0 : +$TESTS_ENABLE_TREESITTER if $MODE == 1 - lua <