 
 (use-package lsp-treemacs)		;
 
+(defun aim/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-test)
+
 (use-package go-mode
   :custom
   (go-fontify-function-calls nil)
   (go-fontify-variables nil)
-  (gofmt-command "goimports")
   :bind (:map go-mode-map
 	      ("C-c C-n" . go-run)
 	      ("C-c ."   . go-test-current-test)

  :defer nil
  :bind
  (("C-x C-j" . dired-jump))
  :config
  (add-hook 'dired-mode-hook #'dired-omit-mode))


	lsp-enable-snippet nil
	lsp-prefer-capf t
	lsp-prefer-flymake nil)
  :config
  (add-to-list 'lsp-file-watch-ignored "[/\\\\]\\.direnv$")
  (lsp-enable-which-key-integration t)
