vimrc(lsp_go): allow shadow analysis
This commit is contained in:
parent
de49851c04
commit
1951f086ec
@ -957,6 +957,7 @@ if executable('gopls')
|
|||||||
\ 'cmd': ['gopls', '-remote=unix;/tmp/.gopls-daemon.sock'],
|
\ 'cmd': ['gopls', '-remote=unix;/tmp/.gopls-daemon.sock'],
|
||||||
\ 'allowlist': ['go', 'gomod', 'gosum','gotexttmpl','gohtmltmpl'],
|
\ 'allowlist': ['go', 'gomod', 'gosum','gotexttmpl','gohtmltmpl'],
|
||||||
\ 'gofumpt': 'true',
|
\ 'gofumpt': 'true',
|
||||||
|
\ 'analyses': {'shadow': 'true'},
|
||||||
\ })
|
\ })
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user