gopls.lua 383 B

123456789101112131415
  1. return {
  2. settings = {
  3. gopls = {
  4. gofumpt = true, -- https://github.com/mvdan/gofumpt a stricter gofmt
  5. completeUnimported = true,
  6. usePlaceholders = true,
  7. analyses = {
  8. unusedparams = true,
  9. },
  10. },
  11. },
  12. flags = {
  13. debounce_text_changes = 150, -- https://github.com/golang/tools/blob/master/gopls/doc/settings.md#change-detection
  14. },
  15. }