feat: Go support
Removed Rust support as I don't use Rust anymore.
This commit is contained in:
parent
778bd8b51d
commit
16605985f3
|
@ -4,14 +4,17 @@
|
||||||
(use-package markdown-mode)
|
(use-package markdown-mode)
|
||||||
|
|
||||||
;; Diagnostics
|
;; Diagnostics
|
||||||
(use-package flymake)
|
(use-package flycheck)
|
||||||
|
|
||||||
;; eglot - Language Server Protocol ingegration
|
;; eglot - Language Server Protocol ingegration
|
||||||
(use-package eglot)
|
(use-package eglot)
|
||||||
|
|
||||||
;; Rust
|
;; Go
|
||||||
(use-package rustic
|
(use-package go-mode
|
||||||
:custom
|
:config
|
||||||
(rustic-lsp-client 'eglot)) ; Make eglot the default LSP client
|
(add-hook 'before-save-hook 'gofmt-before-save) ; Format on save
|
||||||
|
:hook
|
||||||
|
(go-mode . flycheck-mode)) ; Enable flycheck-mode by default
|
||||||
|
|
||||||
|
;; Autobrackets
|
||||||
(add-hook 'prog-mode-hook 'electric-pair-mode)
|
(add-hook 'prog-mode-hook 'electric-pair-mode)
|
||||||
|
|
Reference in a new issue