Skip to content

Commit

Permalink
docs(vim-lsp): enable buildOnSave option
Browse files Browse the repository at this point in the history
It seems to me that enabling this option gives better error detection.

For example, this code returns no diagnostics (errors in LSP lexic) if
buildOnSave is false:

```
package main

func main() {
  xxx
}
```

While the `undefined: xxx` is part of the diagnostics when buildOnSave
is true.
  • Loading branch information
tbruyelle committed Nov 17, 2023
1 parent 1126d9f commit 1c8c98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if (executable('gnols'))
\ 'root' : '/path/to/gno_repo',
\ 'gno' : '/path/to/gno_bin',
\ 'precompileOnSave' : v:true,
\ 'buildOnSave' : v:false,
\ 'buildOnSave' : v:true,
\ },
\ 'languageId': {server_info->'gno'},
\ })
Expand Down

0 comments on commit 1c8c98a

Please sign in to comment.