 
 (use-package gotest)
 
-(defun lsp-go-install-save-hooks ()
-  (add-hook 'before-save-hook #'lsp-format-buffer t t)
-  (add-hook 'before-save-hook #'lsp-organize-imports t t))
+;; (defun lsp-go-install-save-hooks ()
+;;   (add-hook 'before-save-hook #'lsp-format-buffer t t)
+;;   (add-hook 'before-save-hook #'lsp-organize-imports t t))
 
 (use-package go-mode
   :mode "\\.go\\'"

  :mode "\\.swift\\'"
  :if (eq system-type 'darwin))

(use-package lsp-sourcekit
  :if (eq system-type 'darwin)
  :config
  (setq lsp-sourcekit-executable (string-trim (shell-command-to-string "Xcrun --find sourcekit-lsp"))))

(use-package cargo)


              vc-ignore-dir-regexp
              tramp-file-name-regexp))

(use-package eglot
  :diminish
  :ensure t
  :commands eglot-ensure
  :hook ((go-mode nix-mode sh-mode) . eglot-ensure))

(require 'flymake)

(define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
(define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)
