Closed Crowds21 closed 6 months ago
the session management plugin is probably wiping the existing buffers and windows before alpha can, i suppose the hotfix is just pcall
ing those functions for special cases like this
the session management plugin is probably wiping the existing buffers and windows before alpha can, i suppose the hotfix is just
pcall
ing those functions for special cases like this
I originally thought it might be a very simple configuration error, but it sounds like it might be too complicated for me, so I'll just use the default style. Thank you for your reply.
Situration
Last Session
. It shows:Configuration
require "alpha.term"
inlua/plugin/configs/alpha.lua
afterrequire "alpha.term"
lua/plugin/alpha.lua
return { "goolord/alpha-nvim", cmd = "Alpha", opts = function() local dashboard = require "alpha.themes.dashboard" -- require "alpha.term" dashboard.section.terminal = { type = "terminal", command = "cat | " .. os.getenv "HOME" .. "/.config/nvim/lua/user/alpha/yin.sh", width = 50, height = 14, opts = { position = "center", hl = "String", }, } dashboard.section.footer.opts.hl = "DashboardFooter" -- button local button, get_icon = require("astronvim.utils").alpha_button, require("astronvim.utils").get_icon dashboard.section.buttons.val = { button("LDR n ", get_icon("FileNew", 2, true) .. "New File "), button("LDR f f", get_icon("Search", 2, true) .. "Find File "), button("LDR f o", get_icon("DefaultFile", 2, true) .. "Recents "), button("LDR f w", get_icon("WordFile", 2, true) .. "Find Word "), button("LDR f '", get_icon("Bookmarks", 2, true) .. "Bookmarks "), button("LDR S l", get_icon("Refresh", 2, true) .. "Last Session "), }
end, config = require "plugins.configs.alpha", }
I have read the document. I am not good at
lua
, is this a configuration issue? Thanks!