 ;; > because (error Can’t find a suitable init function)
 (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)
 
-;; https://github.com/emacs-lsp/lsp-mode/issues/631#issuecomment-457866187
-(add-hook 'c++-mode-hook
-          (lambda ()
-            (setq flymake-diagnostic-functions (list 'lsp--flymake-backend))))
-
 (add-hook 'minibuffer-setup-hook 'aim/minibuffer-setup)
 
 (use-package direnv

        recentf-max-saved-items 32)
  :bind ("C-x C-r" . recentf-open-files))

(use-package lsp-ui
  :after lsp-mode
  :diminish
  ;; :custom-face
  ;; (lsp-ui-doc-background ((t (:background nil))))
  ;; (lsp-ui-doc-header ((t (:inherit (font-lock-string-face italic)))))
  :bind (:map lsp-ui-mode-map
              ;; ([remap xref-find-definitions] . lsp-ui-peek-find-definitions)
              ;; ([remap xref-find-references] . lsp-ui-peek-find-references)
              ("C-c u" . lsp-ui-imenu))
  :custom
  (lsp-ui-peek-fontify 'always)
  (lsp-ui-doc-enable t)
  (lsp-ui-doc-header t)
  (lsp-ui-doc-include-signature t)
  (lsp-ui-doc-position 'top)
  (lsp-ui-doc-border (face-foreground 'default))
  (lsp-ui-sideline-enable nil)
  (lsp-ui-sideline-ignore-duplicate t)
  (lsp-ui-sideline-show-code-actions nil)
  (lsp-ui-doc-use-webkit t)
  (lsp-ui-sideline-enable nil)
  (lsp-ui-doc-enable nil)
  (lsp-eldoc-hook nil))

(use-package atomic-chrome
  :commands (atomic-chrome-start-server)
  :config

  :commands (helm-ls-git)
  :bind
  (("C-c C-l" . helm-ls-git)))

(use-package executable
  :straight (:type built-in)
