3 Commits

Author SHA1 Message Date
Chris Weyl
90d9d11723 Merge 514e3ebe01 into a7d4a73dd6 2025-02-03 12:25:58 +01:00
Junegunn Choi
a7d4a73dd6 Update README
Some checks failed
Test vim-plug / build (vim) (push) Has been cancelled
2025-02-02 23:28:24 +09: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
2 changed files with 12 additions and 18 deletions

View File

@@ -1,21 +1,3 @@
<div align="center">
<sup>Special thanks to:</sup>
<br>
<br>
<a href="https://warp.dev/?utm_source=github&utm_medium=referral&utm_campaign=vimplug_20240209">
<div>
<img src="https://raw.githubusercontent.com/junegunn/i/master/warp.png" width="300" alt="Warp">
</div>
<b>Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.</b>
<div>
<sup>Visit warp.dev to learn more.</sup>
</div>
</a>
<br>
<hr>
</div>
<br>
<h1 title="vim-plug">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./plug-dark.png">

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