-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some useful commands #1
Comments
CurPkg, RelPkg and Install commands implemented in b814333 |
GoTest command implemented in 026060b |
I'm trying to give completion to GoInstall and GoTest commands. It partially works, here is what I started : function! GocodeCompletePkg(arg, cmd, index)
let s:base=DirName(@%)
let s:dirs=filter(split(globpath(s:base, a:arg.'*'), '\n'), 'isdirectory(v:val)')
let s:ndirs=len(s:dirs)
if s:ndirs <= 0
return ''
elseif s:ndirs == 1
let s:matched=s:dirs[0]
else
let s:matched=s:dirs[0] " TODO select the next match
endif
return substitute(s:matched, s:base.'/', '', '').'/' " add a trailing / to quickly match a child
endfunction I would like to select the next match, any help will be nicely accepted :) |
where is the go run? |
It is not implemented yet. |
first,your work is great,thx for your contribution. |
It currently does not install automatically nsf/gocode and I do not think that is the plug-in job. You can add, for yourself, in your .vimrc :
|
yeah,thx |
I don't think I will create new commands anymore. |
Here is somme commands i'd like to implement :
example :GoInstall . -> will install current file's package
example :GoInstall ./childpkg -> will install the current file's child package
etc
The text was updated successfully, but these errors were encountered: