Skip to content

Conversation

@TheRealLorenz
Copy link
Contributor

Needed for neovim 0.11 port

3 configurations use async.run_command, but this function cannot be used outside of a coroutine context. This is a replacement that's made exactly for that

Needed for #3659

This is needed to port configurations to neovim 0.11
@TheRealLorenz TheRealLorenz marked this pull request as ready for review March 28, 2025 13:48
@TheRealLorenz TheRealLorenz requested a review from glepnir as a code owner March 28, 2025 13:48
local stdout = {}
local stderr = {}

local jobid = vim.fn.jobstart(cmd, {
Copy link
Member

Choose a reason for hiding this comment

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

Can vim.system be used instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think vim.system might actually be better, the syntax is easier. Maybe I could inline the calls and close this PR.

@justinmk
Copy link
Member

3 configurations use async.run_command

Why ?

@TheRealLorenz
Copy link
Contributor Author

3 configurations use async.run_command

Why ?

Well I don't know Go that much, but its configuration runs go env GOMODCACHE to get the cache folder location. There's also rust_analyzer and muon.

@TheRealLorenz
Copy link
Contributor Author

Closing as not needed anymore

@TheRealLorenz TheRealLorenz deleted the feat/run-job branch April 11, 2025 14:20
@justinmk justinmk mentioned this pull request Apr 12, 2025
31 tasks
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