| local util = require("lspconfig.util") | |
| 
 | |
| return { | |
|     cmd = { "gopls" }, | |
|     filetypes = { "go", "gomod", "gowork", "gotmpl" }, | |
|     root_markers = { "go.work", "go.mod" }, | |
|     settings = { | |
|         gopls = { | |
|             completeUnimported = true, | |
|             usePlaceholders = true, | |
|             analyses = { | |
|                 unusedparams = true, | |
|             }, | |
|             staticcheck = true, | |
|             gofumpt = true, | |
|         }, | |
|     }, | |
| }
 |