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) (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)