From 10752a69a18a38c5d65267d8f1aeff9070a9f4ec Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 26 Sep 2023 20:14:41 +0900 Subject: [PATCH] Add dpp#recache_runtimepath() --- autoload/dpp.vim | 4 ++++ doc/dpp.txt | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/autoload/dpp.vim b/autoload/dpp.vim index 2f59d22..4524780 100644 --- a/autoload/dpp.vim +++ b/autoload/dpp.vim @@ -32,3 +32,7 @@ function dpp#make_state(base_path, config_path) abort return dpp#denops#_notify('makeState', [base_path, config_path]) endfunction + +function dpp#recache_runtimepath() abort + call dpp#util#_clear_state() +endfunction diff --git a/doc/dpp.txt b/doc/dpp.txt index de30e27..6cdc10b 100644 --- a/doc/dpp.txt +++ b/doc/dpp.txt @@ -128,6 +128,11 @@ dpp#min#load_state({base-path}) It returns 1, if the cache script is old or invalid or not found. + *dpp#recache_runtimepath()* +dpp#recache_runtimepath() + Re-make the dpp runtimepath cache and execute |:helptags|. + It is called automatically after the installation. + *dpp#source()* dpp#source([{name}]) |:source| the plugins specified by {plugins}.