@@ -3,12 +3,21 @@ local top3 = function()
3
3
4
4
local command = ' git shortlog -ns --since "1 year" | head -n 3'
5
5
local handle = io.popen (command )
6
- local shortlog = handle :read ' *a' or ' not a git directory'
6
+
7
+ --- @cast handle - nil
8
+ local shortlog = handle :read ' *a'
7
9
handle :close ()
8
10
9
11
return table.concat ({ label , shortlog }, ' \n ' )
10
12
end
11
13
14
+ local plugin_actions = {
15
+ { name = ' Kickstart' , action = ' e ~/.config/nvim/init.lua' , section = ' Plugin actions' },
16
+ { name = ' Lazy' , action = ' Lazy' , section = ' Plugin actions' },
17
+ { name = ' Mason' , action = ' Mason' , section = ' Plugin actions' },
18
+ { name = ' Health' , action = ' checkhealth' , section = ' Plugin actions' },
19
+ }
20
+
12
21
local starter = require ' mini.starter'
13
22
14
23
vim .keymap .set (' n' , ' _' , starter .open )
@@ -18,14 +27,15 @@ return {
18
27
evaluate_single = true ,
19
28
header = top3 ,
20
29
items = {
21
- starter .sections .recent_files (8 , true ),
22
- starter .sections .recent_files (8 , false ),
30
+ starter .sections .recent_files (5 , true ),
31
+ starter .sections .recent_files (5 , false ),
23
32
starter .sections .telescope (),
33
+ plugin_actions ,
24
34
starter .sections .builtin_actions (),
25
35
},
26
36
content_hooks = {
27
37
starter .gen_hook .adding_bullet (),
28
- starter .gen_hook .indexing (' all' , { ' Builtin actions' , ' Telescope' }),
38
+ starter .gen_hook .indexing (' all' , { ' Builtin actions' , ' Plugin actions ' , ' Telescope' }),
29
39
starter .gen_hook .aligning (' center' , ' center' ),
30
40
},
31
41
query_updaters = ' abcdefghijklmnopqrstuvwxyz0123456789' ,
0 commit comments