mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 03:41:14 +01:00
Fix: alpha intro-screen not being treated as normal no-name buffer in telescope+neotree.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user