diff options
| author | Alexandre de Souza <alexandre@aledsz.com.br> | 2026-01-03 18:50:41 -0300 |
|---|---|---|
| committer | Alexandre de Souza <alexandre@aledsz.com.br> | 2026-01-03 19:00:54 -0300 |
| commit | 3b90318bdd2f270f3078dda39e73c3249d81ac85 (patch) | |
| tree | 80378250488040c7b2e9885336bc5ff3b766f10e /scripts | |
| parent | fce78f62239d3db06354fd1a856f2c193e24a63d (diff) | |
| download | a4-3b90318bdd2f270f3078dda39e73c3249d81ac85.tar.xz a4-3b90318bdd2f270f3078dda39e73c3249d81ac85.zip | |
Search plenary plugin from multiple directories
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tests/minimal.vim | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/tests/minimal.vim b/scripts/tests/minimal.vim index f8c036d..a7e1e36 100644 --- a/scripts/tests/minimal.vim +++ b/scripts/tests/minimal.vim @@ -1,5 +1,20 @@ set noswapfile set rtp+=. -set rtp+=../plenary.nvim + +let s:paths = [ + \ "../plenary.nvim", + \ expand("~/.local/share/nvim/lazy/plenary.nvim"), + \ expand("~/.local/share/nvim/site/pack/*/start/plenary.nvim"), + \ expand("~/.config/nvim/pack/*/start/plenary.nvim"), + \ expand("~/.config/nvim/plugged/plenary.nvim"), + \ ] + +for s:path in s:paths + if isdirectory(s:path) + execute "set rtp+=" . s:path + break + endif +endfor + runtime! plugin/plenary.vim |
