File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1527,8 +1527,19 @@ built YCM with the `--go-completer` flag; see the [*Installation*
15271527section] ( #installation ) for details). The server only works for projects with
15281528the "canonical" layout.
15291529
1530- ` gopls ` also has a handful of undocumented options for which the
1531- [ source code] [ gopls-preferences ] is the only reference.
1530+ ` gopls ` also has a load of [ documented options] ( https://github.com/golang/tools/blob/master/gopls/doc/settings.md ) .
1531+
1532+ You can set these in your ` .ycm_extra_conf.py ` . For example, to set the build tags:
1533+
1534+ ``` python
1535+ def Settings ( ** kwargs ):
1536+ if kwargs[ ' language' ] == ' go' :
1537+ return {
1538+ ' ls' : {
1539+ ' build' : { ' buildFlags' : [ ' -tags=debug' ] }
1540+ }
1541+ }
1542+ ```
15321543
15331544### JavaScript and TypeScript Semantic Completion
15341545
You can’t perform that action at this time.
0 commit comments