Skip to content

Commit

Permalink
Update vim docs
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning authored Sep 27, 2023
1 parent 4b0489f commit 6b6354f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions doc/youcompleteme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1756,9 +1756,19 @@ Completions and GoTo commands should work out of the box (provided that you
built YCM with the '--go-completer' flag; see the _Installation_ section for
details). The server only works for projects with the "canonical" layout.

'gopls' also has a handful of undocumented options for which the source code
[72] is the only reference.
'gopls' also has a load of documented options [72].

You can set these in your '.ycm_extra_conf.py'. For example, to set the build
tags:
>
def Settings( **kwargs ):
if kwargs[ 'language' ] == 'go':
return {
'ls': {
'build.buildFlags': [ '-tags=debug' ] }
}
}
<
-------------------------------------------------------------------------------
*youcompleteme-javascript-typescript-semantic-completion*
JavaScript and TypeScript Semantic Completion ~
Expand Down Expand Up @@ -4140,7 +4150,7 @@ References ~
[69] https://github.com/rust-lang/rls
[70] https://www.rust-lang.org/downloads.html
[71] https://rust-analyzer.github.io/manual.html#configuration]
[72] https://github.com/golang/tools/blob/master/internal/lsp/server.go
[72] https://github.com/golang/tools/blob/master/gopls/doc/settings.md
[73] https://ternjs.net
[74] https://github.com/ycm-core/YouCompleteMe/wiki/JavaScript-Semantic-Completion-through-Tern
[75] https://code.visualstudio.com/docs/languages/jsconfig
Expand Down

0 comments on commit 6b6354f

Please sign in to comment.