dracula-vim/autoload/dracula.vim
Derek Sifford b5548cd0af
address issues #82, #83, #84 (#85)
* address issues #82, #83, #84

* address code review issues

* remove fzf autocmd per code review comments
2018-05-23 22:52:06 -04:00

10 lines
402 B
VimL

" Helper function that takes a variadic list of filetypes as args and returns
" whether or not the execution of the ftplugin should be aborted.
func! dracula#should_abort(...)
if ! exists('g:colors_name') || g:colors_name !=# 'dracula'
return 1
elseif a:0 > 0 && (! exists('b:current_syntax') || index(a:000, b:current_syntax) == -1)
return 1
endif
return 0
endfunction