fix(go): update go.lua to eliminate fieldalignment from analyses (#5170)

## Description

Removed a setting from the go lang plugin. The setting now just causes
an error:
LSP[gopls] Invalid settings: setting option "analyses": this setting is
deprecated, use "the 'fieldalignment' analyzer was removed in
gopls/v0.17.0; instead, hover over struct fields to see size/offset
information (https://go.dev/issue/66861)" instead

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

Note: submitted similar request as f96aac6 but was rejected by CI/CD for
naming reasons. Changing the name did not help. Retrying.
This commit is contained in:
cjon256 2025-02-07 18:09:03 -05:00 committed by GitHub
parent 94d0ac0a0c
commit 5c9732733d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,6 @@ return {
rangeVariableTypes = true, rangeVariableTypes = true,
}, },
analyses = { analyses = {
fieldalignment = true,
nilness = true, nilness = true,
unusedparams = true, unusedparams = true,
unusedwrite = true, unusedwrite = true,