From 1c8c98a82f7eec6a747a8851685a7381b9d720e0 Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Fri, 17 Nov 2023 14:33:29 +0100 Subject: [PATCH] docs(vim-lsp): enable buildOnSave option 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. --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5c2bb8f9996..7929890e8a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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'}, \ })