mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
12 lines
290 B
VimL
Executable File
12 lines
290 B
VimL
Executable File
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
|
|
|