dotfiles/backup/autoload/emmet/lang.vim

12 lines
290 B
VimL
Raw Normal View History

2020-07-07 11:28:09 +02:00
let s:exists = {}
function! emmet#lang#exists(type) abort
if len(a:type) == 0
return 0
elseif has_key(s:exists, a:type)
return s:exists[a:type]
endif
let s:exists[a:type] = len(globpath(&rtp, 'autoload/emmet/lang/'.a:type.'.vim')) > 0
return s:exists[a:type]
endfunction