aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
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 /src/nvim/syntax.c
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 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 2512495a0a..10cc2ea9b8 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -4394,7 +4394,7 @@ static void syn_cmd_include(exarg_T *eap, int syncing)
curwin->w_s->b_syn_topgrp = sgl_id;
if (source
? do_source(eap->arg, false, DOSO_NONE) == FAIL
- : source_in_path(p_rtp, eap->arg, DIP_ALL) == FAIL) {
+ : source_runtime(eap->arg, DIP_ALL) == FAIL) {
EMSG2(_(e_notopen), eap->arg);
}
curwin->w_s->b_syn_topgrp = prev_toplvl_grp;