added neo-tree, removed lazygit

This commit is contained in:
Peter 2024-11-24 14:20:39 -05:00
parent 2d0abf458c
commit 1e10919b8b
6 changed files with 90 additions and 109 deletions

View file

@ -1,36 +1,36 @@
return {
"goolord/alpha-nvim",
event = "VimEnter",
'goolord/alpha-nvim',
event = 'VimEnter',
config = function()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
-- Set header
dashboard.section.header.val = {
" ",
" ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ",
" ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ",
" ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ",
" ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ",
" ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ",
" ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ",
" ",
' ',
' ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ',
' ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ',
' ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ',
' ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ',
' ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ',
' ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ',
' ',
}
-- Set menu
dashboard.section.buttons.val = {
dashboard.button("e", " > New File", "<cmd>ene<CR>"),
dashboard.button("SPC ee", " > Toggle file explorer", "<cmd>NvimTreeToggle<CR>"),
dashboard.button("SPC ff", "󰱼 > Find File", "<cmd>Telescope find_files<CR>"),
dashboard.button("SPC fs", " > Find Word", "<cmd>Telescope live_grep<CR>"),
dashboard.button("SPC wr", "󰁯 > Restore Session For Current Directory", "<cmd>SessionRestore<CR>"),
dashboard.button("q", " > Quit NVIM", "<cmd>qa<CR>"),
dashboard.button('e', ' > New File', '<cmd>ene<CR>'),
dashboard.button('SPC e', ' > Toggle file explorer', '<cmd>NvimTreeToggle<CR>'),
dashboard.button('SPC ff', '󰱼 > Find File', '<cmd>Telescope find_files<CR>'),
dashboard.button('SPC fs', ' > Find Word', '<cmd>Telescope live_grep<CR>'),
dashboard.button('SPC wr', '󰁯 > Restore Session For Current Directory', '<cmd>SessionRestore<CR>'),
dashboard.button('q', ' > Quit NVIM', '<cmd>qa<CR>'),
}
-- Send config to alpha
alpha.setup(dashboard.opts)
-- Disable folding on alpha buffer
vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])
vim.cmd [[autocmd FileType alpha setlocal nofoldenable]]
end,
}