File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ M.to_clean = {}
101
101
--- @type LazyConfig
102
102
M .options = {}
103
103
104
+ --- @type string
105
+ M .me = nil
106
+
104
107
--- @param spec LazySpec
105
108
--- @param opts ? LazyConfig
106
109
function M .setup (spec , opts )
@@ -113,10 +116,10 @@ function M.setup(spec, opts)
113
116
vim .go .packpath = " "
114
117
end
115
118
if M .options .performance .rtp .reset then
116
- local me = debug.getinfo (1 , " S" ).source :sub (2 )
117
- me = vim .fn .fnamemodify (me , " :p:h:h:h:h" )
119
+ M . me = debug.getinfo (1 , " S" ).source :sub (2 )
120
+ M . me = vim .fn .fnamemodify (M . me , " :p:h:h:h:h" )
118
121
vim .opt .rtp = {
119
- me ,
122
+ M . me ,
120
123
vim .env .VIMRUNTIME ,
121
124
vim .fn .stdpath (" config" ),
122
125
vim .fn .stdpath (" config" ) .. " /after" ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ function M.load()
239
239
240
240
-- add ourselves
241
241
spec .plugins [" lazy.nvim" ] = nil
242
- spec :add ({ " folke/lazy.nvim" , lazy = true , dev = false })
242
+ spec :add ({ " folke/lazy.nvim" , lazy = true , dir = Config . me })
243
243
244
244
local existing = Config .plugins
245
245
Config .plugins = spec .plugins
You can’t perform that action at this time.
0 commit comments