From 12a0f72896704d2efbd2faa8c835347ce41a5cb3 Mon Sep 17 00:00:00 2001 From: Evan Friis Date: Tue, 14 Apr 2015 14:35:26 -0700 Subject: [PATCH 1/5] Bump ycmd version for Gocode support. --- third_party/ycmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/ycmd b/third_party/ycmd index 8e228643..7be4ab30 160000 --- a/third_party/ycmd +++ b/third_party/ycmd @@ -1 +1 @@ -Subproject commit 8e228643ffcab2aa274777ca8b9b0c8183f0ef24 +Subproject commit 7be4ab30a51225a936e402e50336b0b89bb9d697 From 6996a26fb29ab4918eab532afc8851a85d01fc11 Mon Sep 17 00:00:00 2001 From: Evan Friis Date: Tue, 14 Apr 2015 14:35:57 -0700 Subject: [PATCH 2/5] Update docs for Gocode support. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9a0bb87..3a31ef6e 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ YouCompleteMe: a code-completion engine for Vim - [C-family semantic completion](#c-family-semantic-completion-engine-usage) - [Python semantic completion](#python-semantic-completion) - [C# semantic completion](#c-semantic-completion) + - [Go semantic completion](#c-semantic-completion) - [Semantic completion for other languages](#semantic-completion-for-other-languages) - [Writing new semantic completers](#writing-new-semantic-completers) - [Diagnostic display](#diagnostic-display) @@ -147,7 +148,7 @@ Compiling YCM **without** semantic support for C-family languages: ./install.sh If you want semantic C# support, you should add `--omnisharp-completer` to the -install script as well. +install script as well. If you want Go support, you should add `--gocode-completer`. That's it. You're done. Refer to the _User Guide_ section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, @@ -190,7 +191,7 @@ Compiling YCM **without** semantic support for C-family languages: ./install.sh If you want semantic C# support, you should add `--omnisharp-completer` to the -install script as well. +install script as well. If you want Go support, you should add `--gocode-completer`. That's it. You're done. Refer to the _User Guide_ section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, @@ -243,7 +244,7 @@ Compiling YCM **without** semantic support for C-family languages: ./install.sh --system-boost If you want semantic C# support, you should add `--omnisharp-completer` to the -install script as well. +install script as well. If you want Go support, you should add `--gocode-completer`. That's it. You're done. Refer to the _User Guide_ section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, @@ -1989,3 +1990,4 @@ This software is licensed under the [GPL v3 license][gpl]. [bear]: https://github.com/rizsotto/Bear [Options]: https://github.com/Valloric/YouCompleteMe#options [ygen]: https://github.com/rdnetto/YCM-Generator +[Gocode]: https://github.com/nsf/gocode From 16163609acb85ac311aeafe965434bec32890810 Mon Sep 17 00:00:00 2001 From: Evan Friis Date: Tue, 14 Apr 2015 14:40:15 -0700 Subject: [PATCH 3/5] Fix typo. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a31ef6e..5624407d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ YouCompleteMe: a code-completion engine for Vim - [C-family semantic completion](#c-family-semantic-completion-engine-usage) - [Python semantic completion](#python-semantic-completion) - [C# semantic completion](#c-semantic-completion) - - [Go semantic completion](#c-semantic-completion) + - [Go semantic completion](#go-semantic-completion) - [Semantic completion for other languages](#semantic-completion-for-other-languages) - [Writing new semantic completers](#writing-new-semantic-completers) - [Diagnostic display](#diagnostic-display) From 9a2bfbfd4a225749725cbff1e2cb34853aa0d871 Mon Sep 17 00:00:00 2001 From: Evan Friis Date: Wed, 15 Apr 2015 06:45:34 -0700 Subject: [PATCH 4/5] Improve Gocode documentation. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5624407d..c61acc61 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,10 @@ YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for works with every programming language, a semantic, [Clang][]-based engine that provides native semantic code completion for C/C++/Objective-C/Objective-C++ (from now on referred to as "the C-family languages"), a [Jedi][]-based -completion engine for Python, an [OmniSharp][]-based completion engine for C# -and an omnifunc-based completer that uses data from Vim's omnicomplete system to -provide semantic completions for many other languages (Ruby, PHP etc.). +completion engine for Python, an [OmniSharp][]-based completion engine for C#, +a [Gocode][]-based completion engine for Go, and an omnifunc-based completer +that uses data from Vim's omnicomplete system to provide semantic completions +for many other languages (Ruby, PHP etc.). ![YouCompleteMe GIF demo](http://i.imgur.com/0OP4ood.gif) From 9c6b181f92a20b62025166d4092a528379686221 Mon Sep 17 00:00:00 2001 From: Evan Friis Date: Wed, 15 Apr 2015 10:13:15 -0700 Subject: [PATCH 5/5] Add short blurb for native completers. Remove missing TOC entries. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c61acc61..7d4c0cf5 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,6 @@ YouCompleteMe: a code-completion engine for Vim - [Completion string ranking](#completion-string-ranking) - [General semantic completion](#general-semantic-completion-engine-usage) - [C-family semantic completion](#c-family-semantic-completion-engine-usage) - - [Python semantic completion](#python-semantic-completion) - - [C# semantic completion](#c-semantic-completion) - - [Go semantic completion](#go-semantic-completion) - [Semantic completion for other languages](#semantic-completion-for-other-languages) - [Writing new semantic completers](#writing-new-semantic-completers) - [Diagnostic display](#diagnostic-display) @@ -504,6 +501,11 @@ your file. ### Semantic completion for other languages +Python, C#, and Go are supported natively by YouCompleteMe using the [Jedi][], +[Omnisharp][], and [Gocode][] engines, respectively. Check the +[installation](#installation) section for instructions to enable these features +if desired. + YCM will use your `omnifunc` (see `:h omnifunc` in Vim) as a source for semantic completions if it does not have a native semantic completion engine for your file's filetype. Vim comes with okayish omnifuncs for various languages like