40 lines
2.2 KiB
Lua
40 lines
2.2 KiB
Lua
local status, starter = pcall(require, "mini.starter")
|
|
if not status then
|
|
return
|
|
end
|
|
|
|
starter.setup({
|
|
content_hooks = {
|
|
starter.gen_hook.adding_bullet(""),
|
|
starter.gen_hook.aligning("center", "center"),
|
|
},
|
|
evaluate_single = true,
|
|
footer = os.date(),
|
|
header = table.concat({
|
|
[[██████╗ ███████╗███╗ ██╗██╗ ██╗██╗███╗ ███╗]],
|
|
[[██╔══██╗██╔════╝████╗ ██║██║ ██║██║████╗ ████║]],
|
|
[[██████╔╝█████╗ ██╔██╗ ██║██║ ██║██║██╔████╔██║]],
|
|
[[██╔══██╗██╔══╝ ██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║]],
|
|
[[██████╔╝███████╗██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║]],
|
|
[[╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═╝]],
|
|
[[─────────────────────────────────────────────────]],
|
|
}, "\n"),
|
|
query_updaters = [[abcdefghilmoqrstuvwxyz0123456789_-,.ABCDEFGHIJKLMOQRSTUVWXYZ]],
|
|
items = {
|
|
{ action = "PackerSync", name = "U: Update Plugins", section = "Plugins" },
|
|
{ action = "PackerCompile", name = "R: Recompile Packer", section = "Plugins" },
|
|
{ action = "enew", name = "E: New Buffer", section = "Builtin actions" },
|
|
{ action = "qall!", name = "Q: Quit Neovim", section = "Builtin actions" },
|
|
},
|
|
})
|
|
|
|
vim.cmd([[
|
|
augroup MiniStarterJK
|
|
au!
|
|
au User MiniStarterOpened nmap <buffer> j <Cmd>lua MiniStarter.update_current_item('next')<CR>
|
|
au User MiniStarterOpened nmap <buffer> k <Cmd>lua MiniStarter.update_current_item('prev')<CR>
|
|
au User MiniStarterOpened nmap <buffer> <C-p> <Cmd>Telescope find_files<CR>
|
|
au User MiniStarterOpened nmap <buffer> <C-n> <Cmd>Telescope file_browser<CR>
|
|
augroup END
|
|
]])
|