File tree 1 file changed +38
-2
lines changed
1 file changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ function M.extend(defaults, opts)
25
25
end
26
26
27
27
function M .setup (opts )
28
- opts = M .extend ({ spec = { { dir = vim .fn .expand (" ." ) } } }, opts )
28
+ opts = M .extend ({
29
+ change_detection = { enabled = false },
30
+ }, opts )
29
31
30
32
-- set stdpaths to use .tests
31
33
local root = opts .stdpath or " .minit"
@@ -36,11 +38,45 @@ function M.setup(opts)
36
38
37
39
vim .o .loadplugins = true
38
40
require (" lazy" ).setup (opts )
41
+ require (" lazy" ).update ():wait ()
42
+ if vim .bo .filetype == " lazy" then
43
+ local errors = false
44
+ for _ , plugin in pairs (require (" lazy.core.config" ).spec .plugins ) do
45
+ errors = errors or require (" lazy.core.plugin" ).has_errors (plugin )
46
+ end
47
+ if not errors then
48
+ vim .cmd .close ()
49
+ end
50
+ end
51
+ end
52
+
53
+ function M .repro (opts )
54
+ opts = M .extend ({
55
+ spec = {
56
+ {
57
+ " folke/tokyonight.nvim" ,
58
+ priority = 1000 ,
59
+ lazy = false ,
60
+ config = function ()
61
+ require (" tokyonight" ).setup ({ style = " moon" })
62
+ require (" tokyonight" ).load ()
63
+ end ,
64
+ },
65
+ },
66
+ install = { colorscheme = { " tokyonight" } },
67
+ }, opts )
68
+ M .setup (opts )
39
69
end
40
70
41
71
--- @param opts LazyMinit
42
72
function M .busted (opts )
43
- opts = M .extend ({ spec = { " lunarmodules/busted" }, rocks = { hererocks = true } }, opts )
73
+ opts = M .extend ({
74
+ spec = {
75
+ " lunarmodules/busted" ,
76
+ { dir = vim .fn .fnamemodify (" ." , " :p" ) },
77
+ },
78
+ rocks = { hererocks = true },
79
+ }, opts )
44
80
45
81
M .setup (opts )
46
82
You can’t perform that action at this time.
0 commit comments