Add golang lsp configuration parameters

main
Sergio Alvariño 3 years ago
parent 47cf9a50c5
commit 48734ea784

@ -777,6 +777,8 @@ References:
;; (lsp-enable-links nil) ;; (lsp-enable-links nil)
;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports")) ;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports"))
(lsp-gopls-server-args '("--debug=localhost:6060")) (lsp-gopls-server-args '("--debug=localhost:6060"))
(lsp-gopls-staticcheck t)
;; (lsp-gopls-complete-unimported t)
:hook :hook
((go-mode . lsp-deferred) ((go-mode . lsp-deferred)
(before-save . lsp-format-buffer) (before-save . lsp-format-buffer)
@ -793,20 +795,22 @@ References:
) )
#+end_src #+end_src
*** got-projectile *** go-projectile
- [[https://github.com/dougm/go-projectile][The repo]]
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (use-package go-projectile ;; (use-package go-projectile
;; ) ;; :after go-mode)
#+end_src #+end_src
*** go-test *** go-test
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package gotest (use-package gotest
:bind :bind
(:map go-mode-map (:map go-mode-map
("C-c a t" . #'go-test-current-test) ("C-c a t" . #'go-test-current-test)
) )
:after go-mode
) )
#+end_src #+end_src

Loading…
Cancel
Save