Newer
Older
dracula-vim / autoload / dracula.vim
@Derek Sifford Derek Sifford on 23 May 2018 402 bytes address issues #82, #83, #84 (#85)
" 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