diff options
author | 2022-01-14 17:19:54 -0800 | |
---|---|---|
committer | 2022-01-14 17:19:54 -0800 | |
commit | 220090d2549eb88aa4b6748426e0b70cc0ee8d8f (patch) | |
tree | c516fb713dd22353d126fc8f49835af730c12634 /lang/go.el | |
parent | doom: add initial configuration (diff) | |
download | doom-emacs-220090d2549eb88aa4b6748426e0b70cc0ee8d8f.tar.xz |
doom: import configuration from telegraph
Diffstat (limited to 'lang/go.el')
-rw-r--r-- | lang/go.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/go.el b/lang/go.el new file mode 100644 index 0000000..654b19f --- /dev/null +++ b/lang/go.el @@ -0,0 +1,11 @@ +;;; lang/go.el -*- lexical-binding: t; -*- + +(after! lsp + (lsp-register-custom-settings + '(("gopls.staticcheck" t t)))) + +(setq-hook! 'go-mode-hook +format-with :none) + +(add-hook! 'go-mode-hook + (add-hook 'before-save-hook 'lsp-format-buffer t t) + (add-hook 'before-save-hook 'lsp-organize-imports t t)) |