my configs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
383 B

  1. -- Only do this when not yet done for this buffer
  2. if vim.b.did_ftplugin then
  3. return
  4. end
  5. vim.g.go_fmt_autosave = 0
  6. vim.g.go_imports_autosave = 0
  7. vim.g.go_metalinter_autosave = 0
  8. vim.g.go_fmt_command = "gopls"
  9. vim.g.go_metalinter_command = "golangci-lint"
  10. vim.g.go_gopls_gofumpt = 1
  11. vim.g.go_highlight_function_calls = 1
  12. vim.g.go_highlight_fields = 1
  13. vim.g.go_highlight_types = 1