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

How can I get package name completion/suggestion? #492

Open
ghost opened this issue Jan 12, 2018 · 2 comments
Open

How can I get package name completion/suggestion? #492

ghost opened this issue Jan 12, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2018

Hello, I've been using gocode on emacs with company mode, and completion works fairly well.

Once I write package name to import, I can get a list of suggestions for package functions.

However, I am wondering if I can have package name suggestion or completion with gocode on emacs.

For example,

import (
    "io/
)

or

import (
     "github.com/
)

I expect to have a list of package name completion at this point, but it does not seem to work.

Is there any ways to improve my completion, or is this function not implemented yet?

Here're my go and emacs settings

$PATH = '$HOME/git/go/bin:$HOME/go/bin'
$GOPATH='$HOME/go'
(require 'go-mode)                                                              
(require 'company-go)                                                           
(add-hook 'go-mode-hook                                                         
          (lambda ()                                                            
            (add-hook 'before-save-hook 'gofmt-before-save)                     
            (setq tab-width 4)                                                  
            (setq indent-tabs-mode 1)                                           
            (add-to-list 'company-backends '(                                   
                                             company-go                         
                                             company-keywords                   
                                             company-files))                    
            (company-mode)))
@nsf
Copy link
Owner

nsf commented Jan 12, 2018

Hello. This feature is not implemented in company-go plugin.

@ghost
Copy link
Author

ghost commented Jan 13, 2018

OK, I see. Thank you for your response.

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

1 participant