woohooo
This commit is contained in:
commit
085347ddac
49 changed files with 1931 additions and 0 deletions
39
lua/plugins/alpha.lua
Normal file
39
lua/plugins/alpha.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
return {
|
||||
'goolord/alpha-nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
event = 'VimEnter',
|
||||
config = function()
|
||||
local alpha = require 'alpha'
|
||||
local dashboard = require 'alpha.themes.dashboard'
|
||||
|
||||
dashboard.section.header.val = {
|
||||
' ',
|
||||
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗',
|
||||
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║',
|
||||
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║',
|
||||
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║',
|
||||
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║',
|
||||
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝',
|
||||
' ',
|
||||
}
|
||||
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button('f', ' Find file', '<cmd>Telescope find_files<cr>'),
|
||||
dashboard.button('r', ' Recent files', '<cmd>Telescope oldfiles<cr>'),
|
||||
dashboard.button('g', ' Grep text', '<cmd>Telescope live_grep<cr>'),
|
||||
dashboard.button('c', ' Configuration', '<cmd>e $MYVIMRC<cr>'),
|
||||
dashboard.button('l', ' Lazy', '<cmd>Lazy<cr>'),
|
||||
dashboard.button('q', ' Quit', '<cmd>qa<cr>'),
|
||||
}
|
||||
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
-- Disable folding on alpha buffer
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'alpha',
|
||||
callback = function()
|
||||
vim.opt_local.foldenable = false
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue