Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm using liteide for my daily gocode, but I encounter a few issues with gocode and gotools from time to time. So as suggested in some opened isues, I looked at gopls and started to write a plugin for its support. So far, I have managed to get a few things working like: autocomplete, go to declaration, hover (with link and documentation), formatting and imports' update on save.
There is a lot to do to get a working and usable plugin, but I though it could be a good start to it. It's a bit hacky as I just mimic a few existing plugins (gofmt, gocode, ...) and things could be simplified/fixed.
The way i did it is:
All the types/payloads are defined in generated.h, this file is generated from the gopls source code, I think there is a better way to go, but it works pretty so far and can but easily updated.
I'm open to discuss about it and how to improve it and also open to pull request to improve the plugin itself as there is a lot to do.