diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2013-10-11 11:30:03 +1100 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2013-10-11 11:30:03 +1100 |
commit | 5516349fe72050afcb3d67145920ffcf37c8cf66 (patch) | |
tree | d907fed5f720103d6b260fc8dfa1af03abd151de | |
parent | beca0e124d113fa004b8f559c725c704bab2a89a (diff) | |
download | go-5516349fe72050afcb3d67145920ffcf37c8cf66.tar.gz go-5516349fe72050afcb3d67145920ffcf37c8cf66.zip |
misc/vim: complete packages in src directory
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/14454059
-rw-r--r-- | misc/vim/autoload/go/complete.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/vim/autoload/go/complete.vim b/misc/vim/autoload/go/complete.vim index ea6e0104b9..8dd43de4ad 100644 --- a/misc/vim/autoload/go/complete.vim +++ b/misc/vim/autoload/go/complete.vim @@ -86,6 +86,7 @@ function! go#complete#Package(ArgLead, CmdLine, CursorPos) for dir in dirs " this may expand to multiple lines let root = split(expand(dir . '/pkg/' . s:goos . '_' . s:goarch), "\n") + call add(root, expand(dir . '/src')) for r in root for i in split(globpath(r, a:ArgLead.'*'), "\n") if isdirectory(i) |