-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
format with gopls #2483
Comments
I'll take a shot at doing this, if nobody else is. |
This will be a bit tricky to get right, but the basics are that Let me know if you have any questions or need a hand. |
So you think a simple If it's alright with you, I have pushed my changes to a branch, so I'll make a pull request in a few minutes and we can continue the discussion there :) |
Yeah, as I mentioned on the PR, As I've been thinking about it more, I'm starting to lean towards:
I think it's worth closing the #2499 and collaborating to define how this should work. What do you think? |
Agreed and yeah, |
FWIW, I think that |
Implemented in #2729 |
Add support for formatting with gopls instead of
gofmt
orgoimports
.acceptance criteria
g:go_fmt_command
isgopls
vim-go usesgopls
to format Go source filesg:go_fmt_command
is set togopls
,gopls
should be used regardless of the value ofg:go_fmt_experimental
.g:go_fmt_experimental
should be respected regardless of the value ofg:go_fmt_command
.The text was updated successfully, but these errors were encountered: