diff options
| author | triethyl <triethylammonium@pm.me> | 2025-07-08 16:52:49 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-07-08 16:52:49 -0400 |
| commit | 405c50fe980449290fa11c0c3b813954eacf4c4f (patch) | |
| tree | 8ceaa6b56c4155d3c3ce9853eadf534e35468d8f /pkgs/custom-neovim/config/lua/plugins/alpha.lua | |
| parent | a544c622d31187f245b34b9b8b17cbb63a941480 (diff) | |
working on custom nvim
Former-commit-id: 7d898c7680f9611b803438b88026d3d126672437
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/alpha.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/alpha.lua | 21 |
1 files changed, 21 insertions, 0 deletions
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<CR>"), + dashboard.button( "r", " > Find recent file", ":Telescope oldfiles<CR>"), + dashboard.button( "s", "Load session", ""), + dashboard.button( "q", " > Quit", ":qa<CR>"), +} + +-- Send config to alpha +alpha.setup(dashboard.opts) + +-- Disable folding on alpha buffer +vim.cmd([[ + autocmd FileType alpha setlocal nofoldenable +]]) |
