Skip to content

Commit b60f447

Browse files
authored
add workspaceFiles to vim configuration documentation (#4290)
**What type of PR is this?** Documentation **What does this PR do? Why is it needed?** Adds `gopls.build.workspaceFiles` to the Vim documentation, following the merge of the `build.workspaceFiles` option in [gopls v0.18.0](https://github.com/golang/tools/releases/tag/gopls%2Fv0.18.0), which aims to improve editor integration with Bazel projects. **Which issues(s) does this PR fix?** Fixes #4289 **Other notes for review** These configuration changes have already been applied to the https://github.com/bazel-contrib/rules_go/wiki/Editor-setup wiki page, so this is just keeping everything in-sync.
1 parent 077f15f commit b60f447

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/go/editors/vim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ autocompletion for Bazel-generated Go files, among other things.
4040
4141
" See https://github.com/golang/tools/blob/master/gopls/doc/settings.md
4242
let g:go_gopls_settings = {
43+
\ 'build.workspaceFiles': [
44+
\ '**/BUILD',
45+
\ '**/WORKSPACE',
46+
\ '**/*.{bzl,bazel}',
47+
\ ],
4348
\ 'build.directoryFilters': [
4449
\ '-bazel-bin',
4550
\ '-bazel-out',

0 commit comments

Comments
 (0)