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