aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-09-11 16:20:59 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-09-18 13:53:50 +0200
commit396280d3030685c6b7c4d962f24bb5171a735b47 (patch)
tree08b04faa0d1fd328f0e89e8541b444c229633cd9 /runtime/autoload
parent8ef2b56cac895c151345cf0ff0a97456c0a7fdd2 (diff)
downloadrneovim-396280d3030685c6b7c4d962f24bb5171a735b47.tar.gz
rneovim-396280d3030685c6b7c4d962f24bb5171a735b47.tar.bz2
rneovim-396280d3030685c6b7c4d962f24bb5171a735b47.zip
refactor(runtime): always use DIP_START when searching for runtime files
Now remove the addition of "start/*" packages in 'packpath' as explicit items in 'runtimepath'. This avoids 'runtimepath' from becoming very long when using a lot of plugins as packages. To get the effective search path as a list, use |nvim_list_runtime_paths()|
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/remote/host.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim
index c34ff4bee7..884b478f19 100644
--- a/runtime/autoload/remote/host.vim
+++ b/runtime/autoload/remote/host.vim
@@ -114,7 +114,7 @@ function! s:RegistrationCommands(host) abort
let host_id = a:host.'-registration-clone'
call remote#host#RegisterClone(host_id, a:host)
let pattern = s:plugin_patterns[a:host]
- let paths = globpath(&rtp, 'rplugin/'.a:host.'/'.pattern, 1, 1)
+ let paths = nvim_get_runtime_file('rplugin/'.a:host.'/'.pattern, 1)
let paths = map(paths, 'tr(resolve(v:val),"\\","/")') " Normalize slashes #4795
let paths = uniq(sort(paths))
if empty(paths)