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

feat(sources): fix and test all source.navigate to have same nparams #1195

Merged
merged 3 commits into from
Oct 22, 2023
Merged

feat(sources): fix and test all source.navigate to have same nparams #1195

merged 3 commits into from
Oct 22, 2023

Conversation

pysan3
Copy link
Collaborator

@pysan3 pysan3 commented Oct 22, 2023

Closes #1151.

As @cseickel mentioned in this comment, we should have the same number of arguments for all M.navigate functions found in the sources.

I've also added a busted test to ensure that all of the sources have the same number of args.

Failed Example

This was before I made the last commit.

https://github.com/pysan3/neo-tree.nvim/actions/runs/6604075269/job/17937819320

Success Example

After the last commit.

https://github.com/pysan3/neo-tree.nvim/actions/runs/6604154767/job/17937988093

@pysan3 pysan3 changed the title fix(sources): add source.navigate params to make all align feat(sources): fix and test all source.navigate to have same nparams Oct 22, 2023
Copy link
Contributor

@cseickel cseickel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test too, that's awesome!

@cseickel cseickel merged commit 2c78255 into nvim-neo-tree:main Oct 22, 2023
4 checks passed
@pysan3 pysan3 deleted the fix-source.navigate-nparams branch October 22, 2023 15:57
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.

BUG: show moves cursor to Neotree window when source="last"
2 participants