File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ function M.find(modname)
241
241
local modpath = _find ()
242
242
if not modpath then
243
243
-- update rtp
244
- local rtp = vim . api . nvim_list_runtime_paths ()
244
+ local rtp = M . list_rtp ()
245
245
if # rtp ~= M .indexed_rtp then
246
246
M .indexed_rtp = # rtp
247
247
local updated = false
283
283
284
284
-- returns the cached RTP excluding plugin dirs
285
285
function M .get_rtp ()
286
- if vim .in_fast_event () then
287
- return M .rtp or {}
288
- end
289
- local rtp = vim .api .nvim_list_runtime_paths ()
286
+ local rtp = M .list_rtp ()
290
287
if not M .rtp or # rtp ~= M .rtp_total then
291
288
M .rtp_total = # rtp
292
289
M .rtp = {}
@@ -313,6 +310,10 @@ function M.get_rtp()
313
310
return M .rtp
314
311
end
315
312
313
+ function M .list_rtp ()
314
+ return vim .api .nvim_get_runtime_file (" " , true )
315
+ end
316
+
316
317
--- @param opts ? LazyConfig
317
318
function M .setup (opts )
318
319
-- no fancy deep extend here. just set the options
You can’t perform that action at this time.
0 commit comments