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

impl: add support to complete packages #1884

Merged
merged 1 commit into from
Jul 18, 2018
Merged

impl: add support to complete packages #1884

merged 1 commit into from
Jul 18, 2018

Conversation

fatih
Copy link
Owner

@fatih fatih commented Jul 17, 2018

closes #1867

@fatih fatih mentioned this pull request Jul 17, 2018
@fatih fatih merged commit 7faa479 into master Jul 18, 2018
@fatih fatih deleted the impl-improvement branch July 18, 2018 10:22
for pkg in split(globpath(scr_root, a:arglead.'*'), "\n")
if isdirectory(pkg)
let pkg .= '/'
elseif pkg !~ '\.a$'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this check guarding against? Why not a simple else?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part was straight copied from go#path#Complete which we use for :GoImport. I didn't investigated it to be honest :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I thought that might be the case. The code in go#package#Complete looks in $GOPATH/pkg, where there may be *.a files. Since this isn't looking in $GOPATH/pkg, this could be a simple else.

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

Successfully merging this pull request may close these issues.

GoImpl tab complete
2 participants