|
|
|
@ -376,7 +376,7 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package embark
|
|
|
|
|
:bind
|
|
|
|
|
(("C-." . embark-act) ;; pick some comfortable binding
|
|
|
|
|
(("C-+" . embark-act) ;; pick some comfortable binding
|
|
|
|
|
("C-;" . embark-dwim) ;; good alternative: M-.
|
|
|
|
|
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
|
|
|
|
|
|
|
|
@ -1248,19 +1248,20 @@ References:
|
|
|
|
|
- [[https://gist.github.com/psanford/b5d2689ff1565ec7e46867245e3d2c76][psandford/gopls configuration]]
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package go-mode
|
|
|
|
|
:custom
|
|
|
|
|
;; (lsp-enable-links nil)
|
|
|
|
|
;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports"))
|
|
|
|
|
(lsp-gopls-server-args '("--debug=localhost:6060"))
|
|
|
|
|
(lsp-gopls-staticcheck t)
|
|
|
|
|
;; (lsp-gopls-complete-unimported t)
|
|
|
|
|
:hook
|
|
|
|
|
((go-mode . lsp-deferred)
|
|
|
|
|
(before-save . lsp-format-buffer)
|
|
|
|
|
(before-save . lsp-organize-imports)
|
|
|
|
|
(before-save . gofmt-before-save)
|
|
|
|
|
)
|
|
|
|
|
:after lsp
|
|
|
|
|
:custom
|
|
|
|
|
;; (lsp-enable-links nil)
|
|
|
|
|
;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports"))
|
|
|
|
|
(lsp-gopls-server-args '("--debug=localhost:6060"))
|
|
|
|
|
(lsp-gopls-staticcheck t)
|
|
|
|
|
;; (lsp-gopls-complete-unimported t)
|
|
|
|
|
:hook
|
|
|
|
|
((go-mode . lsp-deferred)
|
|
|
|
|
(before-save . lsp-format-buffer)
|
|
|
|
|
(before-save . lsp-organize-imports)
|
|
|
|
|
(before-save . gofmt-before-save)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
*** go-snippets
|
|
|
|
|