mirror of https://github.com/folke/lazy.nvim.git
feat(loader): allow to add extra paths to rtp reset. Fixes #64
This commit is contained in:
parent
a345649510
commit
876f7bd471
|
@ -309,6 +309,8 @@ return {
|
|||
reset_packpath = true, -- reset the package path to improve startup time
|
||||
rtp = {
|
||||
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
||||
---@type string[]
|
||||
paths = {}, -- add any custom paths here that you want to indluce in the rtp
|
||||
---@type string[] list any plugins you want to disable here
|
||||
disabled_plugins = {
|
||||
-- "gzip",
|
||||
|
|
|
@ -69,6 +69,8 @@ M.defaults = {
|
|||
reset_packpath = true, -- reset the package path to improve startup time
|
||||
rtp = {
|
||||
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
||||
---@type string[]
|
||||
paths = {}, -- add any custom paths here that you want to indluce in the rtp
|
||||
---@type string[] list any plugins you want to disable here
|
||||
disabled_plugins = {
|
||||
-- "gzip",
|
||||
|
@ -142,6 +144,9 @@ function M.setup(spec, opts)
|
|||
vim.fn.stdpath("config") .. "/after",
|
||||
}
|
||||
end
|
||||
for _, path in ipairs(M.options.performance.rtp.paths) do
|
||||
vim.opt.rtp:append(path)
|
||||
end
|
||||
vim.opt.rtp:append(M.options.readme.root)
|
||||
|
||||
-- disable plugin loading since we do all of that ourselves
|
||||
|
|
Loading…
Reference in New Issue