From 1cace80e4832a5d250ef4b7ccd687996563fb01b Mon Sep 17 00:00:00 2001 From: venomade Date: Thu, 27 Feb 2025 17:06:42 +0000 Subject: Add old dotfiles --- neovim/lua/plugins/dashboard.lua | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 neovim/lua/plugins/dashboard.lua (limited to 'neovim/lua/plugins/dashboard.lua') diff --git a/neovim/lua/plugins/dashboard.lua b/neovim/lua/plugins/dashboard.lua new file mode 100644 index 0000000..0e719c7 --- /dev/null +++ b/neovim/lua/plugins/dashboard.lua @@ -0,0 +1,58 @@ +local alpha = require('alpha') +local dashboard = require('alpha.themes.dashboard') + +local header = { + type = 'text', + val = 'Neovim', + opts = { + position = 'center', + } +} + +local buttons = { + type = 'group', + val = { + { + type = 'text', + val = 'Quick actions', + opts = { position = 'center' } + }, + { + type = 'padding', + val = 1, + }, + dashboard.button('n', ' New File', + ':enew | NvimTreeFocus', + { desc = 'New file' }), + dashboard.button('o', ' Old Files', + ':Telescope oldfiles', + { desc = 'Old files' }), + dashboard.button('ff', ' Find File', + ':Telescope find_files'), + dashboard.button('fg', ' Find in files') + } +} + +alpha.setup { + layout = { + { + type = 'padding', + val = 2, + }, + header, + { + type = 'padding', + val = 2, + }, + buttons, + { + type = 'padding', + val = 2, + }, + }, +} + +-- vim.api.nvim_create_autocmd("User", { +-- pattern = "AlphaReady", +-- command = "set showtabline=0 | set laststatus=0", +-- }) -- cgit 1.4.1-2-gfad0