2023-11-27 03:27:12 +01:00
|
|
|
local nvim_lsp = require('lspconfig')
|
2023-09-14 20:15:11 +02:00
|
|
|
|
2023-11-27 03:27:12 +01:00
|
|
|
nvim_lsp.gopls.setup {
|
|
|
|
cmd = { 'gopls' },
|
|
|
|
filetypes = { "go", "gomod" },
|
|
|
|
settings = {
|
|
|
|
gopls = {
|
|
|
|
analyses = {
|
|
|
|
unusedparams = true,
|
|
|
|
},
|
|
|
|
staticcheck = true,
|
|
|
|
},
|
|
|
|
},
|
2023-09-14 20:15:11 +02:00
|
|
|
}
|