-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use theta theme #281
Comments
theta uses buttons from the dashboard theme. I think what makes it different from dashboard is its use of recent files. since you don't need those, you can accomplish this with the dashboard theme instead. see return {
"goolord/alpha-nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
"nvim-lua/plenary.nvim",
},
lazy = false,
config = function()
local alpha = require "alpha"
local dashboard = require "alpha.themes.dashboard"
dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ████████ ██ ██ ████ ████████ ]],
[[ █████ ██ ██ ████ █████ ████ ]],
[[ ███ ██ ██ ███ ███ ██ ]],
[[ ██ ██ ██ ███ ██ ██ ]],
[[ ██ ██ ██ ██ ██ █████████████████ ]],
[[ ██ ██ ██ ██ ██ ██ ]],
[[ ███ ██ ██ ██ ██ ██ ]],
[[ █████ ████ ████ ██ ██ ████ ]],
[[ ████████ █████ ██ ██ ████████ ]],
[[ ]],
[[ ]],
[[ ]],
}
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("q", " Quit NVIM", ":qa<CR>"),
{ type = "padding", val = 2 },
}
-- Set footer
local footer = [[
I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration.
I will face my fear. I will permit it to pass over me and through me. And when it has gone past
I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain.
]]
dashboard.section.footer.val = footer
dashboard.section.footer.type = "text"
dashboard.section.footer.opts = {
position = "center",
hl = "Number",
}
-- Keymaps
vim.keymap.set("n", "<leader>a", ":Alpha<CR>", { desc = "Goto Greeter Screen" })
alpha.setup(dashboard.config)
end,
} |
Theta doesn't have the same layout as startify, so the variables have different names. You can access the header of theta by using
|
Hi, I am unable to use the theta theme, the startify works well, I wanted to try the theta theme to get a centralized greeter page.
the error is
This is my config for alpha
The text was updated successfully, but these errors were encountered: