feat: Go support

Removed Rust support as I don't use Rust anymore.
This commit is contained in:
Muhammad Nauman Raza 2022-11-14 21:37:52 +00:00
parent 778bd8b51d
commit 16605985f3
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31

View file

@ -4,14 +4,17 @@
(use-package markdown-mode)
;; Diagnostics
(use-package flymake)
(use-package flycheck)
;; eglot - Language Server Protocol ingegration
(use-package eglot)
;; Rust
(use-package rustic
:custom
(rustic-lsp-client 'eglot)) ; Make eglot the default LSP client
;; Go
(use-package go-mode
:config
(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)