Skip to content
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

Add a module that generates the header based on the git directory your in. #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twiclo
Copy link

@twiclo twiclo commented Apr 23, 2023

local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local ascii = require("alpha.ascii")                          
                                                              
dashboard.section.header.val = git_or("neovim", "ansi_shadow")

https://asciinema.org/a/55ia2ygqn6KD30GhToZ44F8fX

git_or will look to the parent directory of a git repo and generate a header for that. If not in a git repo it will default to the first argument. The second argument is the font. I only put one in but more can be added later. Looking for input on if storing the "font" this way is a good idea.

@twiclo
Copy link
Author

twiclo commented Apr 23, 2023

I'm also looking for pointers on the best way to set the preferred case. All lower, all caps, or leave as is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant