-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
folds disappear on :GoImports call #2789
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
Comments
You can try using As you noted in #2525, However, I do intend to add support for using gopls to organize the imports, too. That will likely resolve the issue with folds. |
I nearly have a PR ready for using |
Absolutely! |
Add support for using `gopls` for `:GoImports`. A new option, g:go_imports_command can be set to cause `:GoImports` to adjust imports using `gopls. Fixes fatih#2789
Thank you 🙇 #2791 is ready to test. |
hm, doesn't seem to work for me using
🤦♂️ ok, i just saw the |
@salarkhan fyi, I spelled that option wrong in #2791. #2794 is coming very soon to correct that. |
@bhcleek i've noticed that it's likely a thanks for all your work in this super niche area! |
@salarkhan let's continue this in a new issue if needed. But Thank you for your kind words 🙇 |
ah, sorry for typing it incorrectly earlier, it was def set correctly in my vimdc. i'll open a new ticket for this:
|
What did you do? (required: The issue will be closed when not provided)
What did you expect to happen?
folds are maintained
What happened instead?
folds disappeared
Configuration (MUST fill this out):
vim-go version:
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
Vim version (first three lines from
:version
):NVIM v0.3.8
Build type: Release
LuaJIT 2.1.0-beta3
Go version (
go version
):go version go1.12 linux/amd64
Go environment
go env
Output:The text was updated successfully, but these errors were encountered: