Skip to content

refactor: make executable check async #189

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

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

Conversation

glepnir
Copy link
Member

@glepnir glepnir commented Jan 9, 2025

executable is sync version when one of formatter is not executable it will cause nvim block, make executable check async and move to FileType callback we don't need check all when config. just lazied check when need.

@glepnir glepnir requested a review from xiaoshihou514 January 9, 2025 12:28
executable is sync version when one of formatter is
not executable it will cause nvim block, make executable
check async and move to FileType callback we don't need
check all when config. just lazied check when need.
@xiaoshihou514
Copy link
Collaborator

lgtm?

@xiaoshihou514
Copy link
Collaborator

But the tests failed.

@glepnir
Copy link
Member Author

glepnir commented May 16, 2025

I have a simple async/await lib. i guess we can use it to refactor guard ?

ref https://github.com/glepnir/nvim/blob/main/plugin/async.lua

@xiaoshihou514
Copy link
Collaborator

I have a simple async/await lib. i guess we can use it to refactor guard ?

ref https://github.com/glepnir/nvim/blob/main/plugin/async.lua

I think just abstracting async patterns in guard is good enough, in a brief look, I think the library is not 100% guard specific :think:

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.

2 participants