From 405c50fe980449290fa11c0c3b813954eacf4c4f Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 8 Jul 2025 16:52:49 -0400 Subject: working on custom nvim Former-commit-id: 7d898c7680f9611b803438b88026d3d126672437 --- pkgs/custom-neovim/config/lua/plugins/alpha.lua | 21 +++++++++++++++++++++ pkgs/custom-neovim/config/lua/plugins/tabby.lua | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 pkgs/custom-neovim/config/lua/plugins/alpha.lua (limited to 'pkgs/custom-neovim/config/lua/plugins') diff --git a/pkgs/custom-neovim/config/lua/plugins/alpha.lua b/pkgs/custom-neovim/config/lua/plugins/alpha.lua new file mode 100644 index 0000000..ef39612 --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/alpha.lua @@ -0,0 +1,21 @@ +local alpha = require("alpha") +local dashboard = require("alpha.themes.dashboard") + +-- Set header +dashboard.section.header.val = art.misc.hydra + +-- Set menu +dashboard.section.buttons.val = { + dashboard.button( "f", " > Find file", ":cd $HOME | Telescope find_files"), + dashboard.button( "r", " > Find recent file", ":Telescope oldfiles"), + dashboard.button( "s", "Load session", ""), + dashboard.button( "q", " > Quit", ":qa"), +} + +-- Send config to alpha +alpha.setup(dashboard.opts) + +-- Disable folding on alpha buffer +vim.cmd([[ + autocmd FileType alpha setlocal nofoldenable +]]) diff --git a/pkgs/custom-neovim/config/lua/plugins/tabby.lua b/pkgs/custom-neovim/config/lua/plugins/tabby.lua index ecba331..211c0c0 100644 --- a/pkgs/custom-neovim/config/lua/plugins/tabby.lua +++ b/pkgs/custom-neovim/config/lua/plugins/tabby.lua @@ -6,7 +6,6 @@ local colors = { }; local theme = { fill = colors.fill, - -- Also you can do this: fill = { fg='#f2e9de', bg='#907aa9', style='italic' } head = colors.fill, current_tab = colors.current, tab = colors.not_current, -- cgit v1.2.3