File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1756,9 +1756,19 @@ Completions and GoTo commands should work out of the box (provided that you
17561756built YCM with the '--go-completer' flag; see the _Installation_ section for
17571757details). The server only works for projects with the "canonical" layout.
17581758
1759- 'gopls' also has a handful of undocumented options for which the source code
1760- [72] is the only reference.
1759+ 'gopls' also has a load of documented options [72] .
17611760
1761+ You can set these in your '.ycm_extra_conf.py'. For example, to set the build
1762+ tags:
1763+ >
1764+ def Settings( **kwargs ):
1765+ if kwargs[ 'language' ] == 'go':
1766+ return {
1767+ 'ls': {
1768+ 'build.buildFlags': [ '-tags=debug' ] }
1769+ }
1770+ }
1771+ <
17621772-------------------------------------------------------------------------------
17631773 *youcompleteme-javascript-typescript-semantic-completion*
17641774JavaScript and TypeScript Semantic Completion ~
@@ -4140,7 +4150,7 @@ References ~
41404150[69] https://github.com/rust-lang/rls
41414151[70] https://www.rust-lang.org/downloads.html
41424152[71] https://rust-analyzer.github.io/manual.html#configuration ]
4143- [72] https://github.com/golang/tools/blob/master/internal/lsp/server.go
4153+ [72] https://github.com/golang/tools/blob/master/gopls/doc/settings.md
41444154[73] https://ternjs.net
41454155[74] https://github.com/ycm-core/YouCompleteMe/wiki/JavaScript-Semantic-Completion-through-Tern
41464156[75] https://code.visualstudio.com/docs/languages/jsconfig
You can’t perform that action at this time.
0 commit comments