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

Not auto import but removed used import #166

Open
m0n203 opened this issue Nov 28, 2024 · 2 comments
Open

Not auto import but removed used import #166

m0n203 opened this issue Nov 28, 2024 · 2 comments

Comments

@m0n203
Copy link

m0n203 commented Nov 28, 2024

I am using helix 24.7 and goimports-reviser 3.8.2, with configuration:

[[language]]
name = "go"
auto-format = true
formatter = { command = "goimports-reviser", args = ["-rm-unused", "-set-alias", "-format", "-"] }

Am I doing it wrong?

Screencast_20241128_104856.webm
@incu6us
Copy link
Owner

incu6us commented Nov 28, 2024

unfortunately, it shouldn't work like you are trying because you should be in the dir where the file is present. Helix trying to run everything from the path, by which it was started. so, you need this to make it working. in other words, you need to set full path to the file in the editor

@incu6us incu6us closed this as completed Nov 28, 2024
@m0n203
Copy link
Author

m0n203 commented Nov 29, 2024

But it's still can't insert needed import w/o helix:

Screenshot_20241129_120136

@incu6us incu6us reopened this Nov 29, 2024
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

2 participants