mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-18 09:44:50 +02:00
fix(config): dont append LazyVim early to the rtp when bootstrapping
This commit is contained in:
parent
6b837e9165
commit
4e0a05808c
1 changed files with 4 additions and 1 deletions
|
@ -268,7 +268,10 @@ M.did_init = false
|
|||
function M.init()
|
||||
if not M.did_init then
|
||||
M.did_init = true
|
||||
vim.opt.rtp:append(require("lazy.core.config").spec.plugins.LazyVim.dir)
|
||||
local plugin = require("lazy.core.config").spec.plugins.LazyVim
|
||||
if plugin then
|
||||
vim.opt.rtp:append(plugin.dir)
|
||||
end
|
||||
|
||||
M.use_lazy_file = M.use_lazy_file and vim.fn.argc(-1) > 0
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue