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

Opening dashboard breaks Nvim's alternate file #497

Open
Riyyi opened this issue Dec 14, 2024 · 0 comments
Open

Opening dashboard breaks Nvim's alternate file #497

Riyyi opened this issue Dec 14, 2024 · 0 comments

Comments

@Riyyi
Copy link

Riyyi commented Dec 14, 2024

Describe the bug
When navigating between files, I use the alternate file feature via <C-6>. If I switch to the dashboard via the :Dashboard command, I think an empty string is inserted into the alternate file, and I can't navigate back anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Open Neovim
  2. Open a project file
  3. Open a second project file
  4. Run :Dashboard
  5. Press <C-6>, it returns to the second project file
  6. Press <C-6> again
  7. See error: E23: No alternate file

My configuration:

	-- Dashboard
	{
		"nvimdev/dashboard-nvim",
		event = "VimEnter",
	},

Expected behavior
I find either behavior acceptable

  • Opening the dashboard creates a normal buffer, so after step 6 it returns to the dashboard buffer
  • Opening the dashboard doesn't pollute the alternate file, so after step 6 it returns to the first project file
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

No branches or pull requests

1 participant