Files
vim-matchup/autoload/matchup/misc.vim
2021-02-25 22:48:13 -05:00

33 lines
630 B
VimL

" vim match-up - even better matching
"
" Maintainer: Andy Massimino
" Email: a@normed.space
"
" {{{1 function! matchup#misc#reload()
if get(s:, 'reload_guard', 1)
function! matchup#misc#reload() abort
let s:reload_guard = 0
for l:file in glob(fnamemodify(s:file, ':h') . '/../**/*.vim', 0, 1)
execute 'source' l:file
endfor
call matchup#init()
if has('nvim-0.5.0')
silent! lua require('treesitter-matchup.reload')
\ .reload_module('treesitter-matchup')
endif
unlet s:reload_guard
endfunction
endif
" }}}1
let s:file = expand('<sfile>')
" vim: fdm=marker sw=2