From a0b288e854c6788f360e5c7ef17d9ad6d1730bad Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Tue, 19 Dec 2023 12:08:37 +0100 Subject: chore: update config --- lang/go.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lang') diff --git a/lang/go.el b/lang/go.el index aaf0ba7..2cec390 100644 --- a/lang/go.el +++ b/lang/go.el @@ -1,11 +1,6 @@ ;;; lang/go.el -*- lexical-binding: t; -*- -(when (featurep! :tools lsp +eglot) +(when (modulep! :tools lsp +eglot) (after! eglot (add-to-list 'eglot-workspace-configuration - `((:gopls . ((staticcheck . t)))))) - - (setq-hook! 'go-mode-hook +format-with :none) - - (add-hook! 'go-mode-hook - (add-hook 'before-save-hook #'eglot-format-buffer -30 t))) + `((:gopls . ((staticcheck . t))))))) -- cgit v1.2.3