From 396280d3030685c6b7c4d962f24bb5171a735b47 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 11 Sep 2021 16:20:59 +0200 Subject: 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()| --- src/nvim/syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/syntax.c') 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; -- cgit