   (company-idle-delay .3)
   (company-echo-delay 0)
   (company-begin-commands '(self-insert-command)))
-
-(use-package lsp-mode
-  :commands lsp
-  :hook (prog-mode . lsp)
-  :bind (:map lsp-mode-map
-         ("C-c ." . lsp-find-references)
-         ("C-c C-r" . lsp-rename))
-  :custom
-  (lsp-prefer-flymake nil)
-  (lsp-auto-guess-root t)
-  (lsp-eldoc-render-all t))
-
-(use-package lsp-ui
-  :commands lsp-ui-mode
-  :custom
-  (lsp-ui-sideline-enable nil)
-  (lsp-ui-doc-enable nil))
 
 (use-package company-lsp
   :commands company-lsp)

  :config
  (add-to-list 'company-backends 'company-elm))

(defun go-config/hook ()
  (add-hook 'before-save-hook 'gofmt-before-save)
  (add-to-list 'load-path (concat (getenv "GOPATH") "/src/github.com/golang/lint/misc/emacs")))

(use-package golint
  :after (go-mode))

(use-package go-mode
  :mode "\\(\\.go\\|go.mod\\|go.sum\\)\\'"
  :bind (:map go-mode-map
              ("C-x t f" . go-test-current-file)
              ("C-x t t" . go-test-current-test))
  :init
  (setq gofmt-command "goimports")
  :config
  (add-hook 'go-mode-hook 'go-config/hook))

(use-package haskell-mode
  :mode (("\\.hcr\\'" . ghc-core-mode)

  :mode "\\.html?\\'"
  :mode "\\.gotmpl\\'"
  :mode "\\.handlebars\\'"
  :mode "\\.php\\'"
  :mode "\\.vue\\'"
  :ensure-system-package ((css-languageserver . "npm i -g vscode-css-languageserver-bin")
                          (html-languageserver . "npm i -g vscode-html-languageserver-bin"))
