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

Update recipes.md #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

iamxiaojianzheng
Copy link

Automatically returns to the dashboard when the buffer is empty

Automatically returns to the dashboard when the buffer is empty
@folke
Copy link
Contributor

folke commented Jul 8, 2024

Wouldn't this also show the dashboard when doing <leader>fn?

Probably need to also check that just a single non-floating window is open and there are no open buffers?

@jyuan0
Copy link

jyuan0 commented Jul 10, 2024

Wouldn't this also show the dashboard when doing <leader>fn?

Yes, if you then try to delete (or even :w filename) the buffer.

Probably need to also check that just a single non-floating window is open and there are no open buffers?

Yes. The accepted answer (goolord/alpha-nvim#85 (comment)) in the post that this code came from is better, but I suspect it's still buggy/too simplistic.

In short, I don't I this should be added as-is. I posted the code that this came from (LazyVim/LazyVim#3901 (comment)), and I suspected it was buggy, so I feel I bear some responsibility.

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.

3 participants