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

Company: make autocomplete after typing "func" optional #490

Open
ghost opened this issue Jan 7, 2018 · 6 comments
Open

Company: make autocomplete after typing "func" optional #490

ghost opened this issue Jan 7, 2018 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 7, 2018

As it is right now, with a default company-minimum-prefix-length company-go will popup function names after you type func and selecting them replaces the previously written func. This is pretty strange behaviour, and no other autocompletion I've used would open up a list of candidates after typing function or whatever the language's keyword for it is.

Are there any plans of adding something like this? If not that's fine, I'm okay with patching it myself. It seems simple enough from the emacs side, but if this was added to the core gocode is beyond my capability. But there's a few places I could put this, and I'm not sure where is best. Any pointers would be appreciated.

@nsf
Copy link
Owner

nsf commented Jan 7, 2018

I can make a flag which disables that feature on the gocode side.

@nsf
Copy link
Owner

nsf commented Jan 7, 2018

Added in 4166437. The option is enabled by default to keep backwards compatibility. Try disabling it, maybe it solves your problem.

@ghost
Copy link
Author

ghost commented Jan 7, 2018

Yes, that fixed it. Thank you so much!

@ghost ghost closed this as completed Jan 7, 2018
@ghost
Copy link
Author

ghost commented Jan 10, 2018

This also happens when typing "break", it will open up completion for everything that's defined. Is that intended?

@ghost ghost reopened this Jan 10, 2018
@nsf nsf added the Bug label Jan 11, 2018
@nsf
Copy link
Owner

nsf commented Jan 11, 2018

No it's a bug. #385

@Dicridon
Copy link

I am learning Go recently and meet the problem. I am still confused about what I should do to fix it, can anybody tell me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants