15 lines
280 B
Lua
15 lines
280 B
Lua
|
local nvim_lsp = require ('lspconfig')
|
||
|
|
||
|
nvim_lsp.gopls.setup{
|
||
|
cmd = {'gopls'},
|
||
|
filetypes = {"go", "gomod"},
|
||
|
settings = {
|
||
|
gopls = {
|
||
|
analyses = {
|
||
|
unusedparams = true,
|
||
|
},
|
||
|
staticcheck = true,
|
||
|
},
|
||
|
},
|
||
|
}
|