fix(lsp): add GOFLAGS environment setting to gopls
Add GOFLAGS environment setting to gopls and add the 'mage' tag so that gopls works with magefiles.
This commit is contained in:
parent
3a210b1d56
commit
e92cf5bdb3
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,9 @@ lspconfig.gopls.setup{
|
||||||
analyses = {
|
analyses = {
|
||||||
unusedparams = true,
|
unusedparams = true,
|
||||||
},
|
},
|
||||||
|
env = {
|
||||||
|
GOFLAGS = "-tags=mage"
|
||||||
|
},
|
||||||
gofumpt = true,
|
gofumpt = true,
|
||||||
staticcheck = true,
|
staticcheck = true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue