 (use-package go-mode
   :ensure t
   :config
-  (add-hook 'go-mode-hook 'lsp-deferred)
-  (add-hook 'go-mode-gook 'flycheck-mode))
+  (add-hook 'go-mode-hook 'lsp-deferred))
   
-;; Enable syntax checking
-(use-package flycheck
-  :ensure t
-  :init (global-flycheck-mode))
-
 ;; Fancy titlebar for macOS
 (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
 (add-to-list 'default-frame-alist '(ns-appearance . darl))

  (load-theme 'doom-nord-light t)
  (doom-themes-org-config))

;; Enable a sidebar for navigation
(use-package dired-sidebar
  :ensure t
  :bind (("C-x C-n" . dired-sidebar-toggle-sidebar))
  :commands (dired-sidebar-toggle-sidebar))

;; Enable icons with dired-sidebar
(use-package all-the-icons-dired
  :ensure t
  :config
  (add-hook 'dired-mode-hook 'all-the-icons-dired-mode))

;; Enable language server protocol support
(use-package lsp-mode
  :ensure t

 ;; If there is more than one, they won't work right.
 '(package-selected-packages
   (quote
    (lsp-mode doom-themes evil exec-path-from-shell ))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
