 
 (setq read-process-output-max (* 8 (* 1024 1024)))
 
+;; use this when everything breaks
+;; (use-package lsp-mode
+;;   :demand
+;;   :init
+;;   ;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
+;;   (setq lsp-keymap-prefix "C-c l")
+;;   :hook ((go-mode . lsp-deferred)
+;;          (lsp-mode . lsp-enable-which-key-integration))
+;;   :commands lsp lsp-deferred)
+
 (use-package lsp-mode
   :demand
   :init

	lsp-enable-file-watchers nil
	lsp-enable-on-type-formatting nil
	lsp-enable-snippet nil
        lsp-use-plists t
        lsp-idle-delay 0.500)
  :config
  (setq lsp-enable-file-watchers nil
	lsp-enable-on-type-formatting nil
	lsp-enable-snippet nil
        lsp-use-plists t
        lsp-idle-delay 0.500)
  (when (boundp 'read-process-output-max)
    ;; This is to speedup LSP. Increase the amount of data which Emacs

	     go-test-current-file
	     go-test-current-project)
  :hook (;; (before-save . gofmt-before-save)
         (go-mode . lsp-deferred)
         (go-mode . lsp-go-install-save-hooks)))

(use-package go-add-tags)
