2 Commits

Author SHA1 Message Date
Chris Weyl
90d9d11723 Merge 514e3ebe01 into a7d4a73dd6 2025-02-03 12:25:58 +01:00
Chris Weyl
514e3ebe01 Add a number of public utility functions
Some trivial functions to access `s:loaded`, to allow sane introspection
of plugin status, etc.
2022-12-19 12:54:58 -06:00

View File

@@ -2859,5 +2859,17 @@ if exists('g:plugs')
call s:define_commands()
endif
function! plug#plugin_info(name) abort
return get(s:loaded, a:name, {})
endfunction
function! plug#loaded() abort
return keys(filter(copy(s:loaded), { k, v -> v }))
endfunction
function! plug#not_loaded() abort
return keys(filter(copy(s:loaded), { k, v -> !v }))
endfunction
let &cpo = s:cpo_save
unlet s:cpo_save