File tree Expand file tree Collapse file tree 3 files changed +70
-3
lines changed Expand file tree Collapse file tree 3 files changed +70
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ local M = {}
5
5
6
6
M .startup = function ()
7
7
vim .api .nvim_create_autocmd ({ " VimEnter" }, {
8
- callback = policy .run ,
8
+ callback = vim . schedule_wrap ( policy .run ) ,
9
9
})
10
10
end
11
11
@@ -16,12 +16,12 @@ M.filetype = function()
16
16
" WinEnter" ,
17
17
" TermEnter" ,
18
18
}, {
19
- callback = policy .run ,
19
+ callback = vim . schedule_wrap ( policy .run ) ,
20
20
})
21
21
end
22
22
23
23
M .fixed_interval = function ()
24
- policy .run ()
24
+ vim . schedule_wrap ( policy .run ) ()
25
25
end
26
26
27
27
M .setup = function ()
Original file line number Diff line number Diff line change
1
+ vim .o .number = true
2
+ vim .o .autoread = true
3
+ vim .o .autowrite = true
4
+ vim .o .swapfile = false
5
+ vim .o .confirm = true
6
+
7
+ local lazypath = vim .fn .stdpath (" data" ) .. " /lazy/lazy.nvim"
8
+ if not vim .loop .fs_stat (lazypath ) then
9
+ vim .fn .system ({
10
+ " git" ,
11
+ " clone" ,
12
+ " --filter=blob:none" ,
13
+ " https://github.com/folke/lazy.nvim.git" ,
14
+ " --branch=stable" , -- latest stable release
15
+ lazypath ,
16
+ })
17
+ end
18
+ vim .opt .rtp :prepend (lazypath )
19
+
20
+ local opts = {
21
+ defaults = { lazy = false },
22
+ }
23
+
24
+ require (" lazy" ).setup ({
25
+ {
26
+ " linrongbin16/colorbox.nvim" ,
27
+ opts = {},
28
+ build = function ()
29
+ require (" colorbox" ).update ()
30
+ end ,
31
+ },
32
+ }, { dev = { path = " ~/github/linrongbin16" }, defaults = { lazy = false } })
Original file line number Diff line number Diff line change
1
+ vim .o .number = true
2
+ vim .o .autoread = true
3
+ vim .o .autowrite = true
4
+ vim .o .swapfile = false
5
+ vim .o .confirm = true
6
+
7
+ local function bootstrap_pckr ()
8
+ local pckr_path = vim .fn .stdpath (" data" ) .. " /pckr/pckr.nvim"
9
+
10
+ if not vim .loop .fs_stat (pckr_path ) then
11
+ vim .fn .system ({
12
+ " git" ,
13
+ " clone" ,
14
+ " --filter=blob:none" ,
15
+ " https://github.com/lewis6991/pckr.nvim" ,
16
+ pckr_path ,
17
+ })
18
+ end
19
+
20
+ vim .opt .rtp :prepend (pckr_path )
21
+ end
22
+
23
+ bootstrap_pckr ()
24
+
25
+ require (" pckr" ).add ({
26
+ {
27
+ " ~/github/linrongbin16/colorbox.nvim" ,
28
+ config = function ()
29
+ require (" colorbox" ).setup ()
30
+ end ,
31
+ run = function ()
32
+ require (" colorbox" ).update ()
33
+ end ,
34
+ },
35
+ })
You can’t perform that action at this time.
0 commit comments