aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 941258fa79..63249416b1 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -1333,6 +1333,7 @@ static void load_plugins(void)
{
if (p_lpl) {
char_u *rtp_copy = NULL;
+ char_u *const plugin_pattern = (char_u *)"plugin/**/*.vim"; // NOLINT
// First add all package directories to 'runtimepath', so that their
// autoload directories can be found. Only if not done already with a
@@ -1345,7 +1346,7 @@ static void load_plugins(void)
}
source_in_path(rtp_copy == NULL ? p_rtp : rtp_copy,
- (char_u *)"plugin/**/*.vim", // NOLINT
+ plugin_pattern,
DIP_ALL | DIP_NOAFTER);
TIME_MSG("loading plugins");
xfree(rtp_copy);
@@ -1357,7 +1358,7 @@ static void load_plugins(void)
}
TIME_MSG("loading packages");
- source_runtime((char_u *)"plugin/**/*.vim", DIP_ALL | DIP_AFTER);
+ source_runtime(plugin_pattern, DIP_ALL | DIP_AFTER);
TIME_MSG("loading after plugins");
}
}