Fix: alpha intro-screen not being treated as normal no-name buffer in telescope+neotree.

This commit is contained in:
psychhim
2025-10-14 15:34:01 +05:30
parent 9796478476
commit 7d9edc3468
3 changed files with 26 additions and 4 deletions

View File

@@ -5,12 +5,18 @@ return {
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
-- Load ASCII splash
local splash = require 'ascii_splash'
dashboard.section.header.val = splash
-- Get Neovim starting directory
local start_dir = vim.fn.getcwd()
-- Setup buttons
dashboard.section.buttons.val = {
dashboard.button('e', ' New File', ':ene <BAR> startinsert <CR>'),
dashboard.button('q', ' Quit', ':qa<CR>'),
dashboard.button('i', ' New File', ':ene <BAR> startinsert <CR>'),
dashboard.button('<leader>n', ' Open Neo-tree', ':cd ' .. start_dir .. ' | Neotree toggle float<CR>'),
dashboard.button('<leader>q', ' Quit', ':qa<CR>'),
}
alpha.setup(dashboard.opts)