   (dimmer-mode))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; => LSP
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(use-package lsp-mode
+  :hook ((python-mode php-mode) . lsp)
+  :custom
+  (lsp-prefer-flymake nil)
+  ;; (setq-default lsp-pyls-configuration-sources ["flake8"]))
+  )
+
+(use-package lsp-ui
+  :ensure t
+  :requires lsp-mode flycheck
+  :config
+  (setq lsp-ui-doc-enable t
+        lsp-ui-doc-use-childframe t
+        lsp-ui-doc-position 'top
+        lsp-ui-doc-include-signature t
+        lsp-ui-sideline-enable nil
+        ;; lsp-ui-flycheck-enable t
+        ;; lsp-ui-flycheck-list-position ‘right
+        ;; lsp-ui-flycheck-live-reporting t
+        lsp-ui-peek-enable t
+        lsp-ui-peek-list-width 60
+        lsp-ui-peek-peek-height 25
+        lsp-ui-sideline-enable nil))
+(use-package company-lsp
+  :ensure t
+  :config
+  (setq company-lsp-enable-snippet t
+        company-lsp-cache-candidates t)
+  (push 'company-lsp company-backends))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; => Langs
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 

;; >>>> General utils
;; -------------------------

;; Use double key combination
(use-package use-package-chords
  :ensure t
  :config
  (key-chord-mode 1))

;; Make sure that delight is available as soon as any package triggers it.
(use-package delight
  :commands delight)


;; org
(use-package org
  :mode ("\\.org\\'" . org-mode)
  :ensure t)
(use-package org-bullets
  :ensure t
  :commands (org-bullets-mode)
  :init (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))

;; Emacs package from source
(use-package quelpa
  :ensure t)

(use-package ivy
  :ensure t

;; -------------------------

;; yasnippet
(defhydra hydra-magit (:color blue :hint nil)
  "
      Magit: %(magit-get \"remote\" \"origin\" \"url\")

^Magit^
^─────^────────────────────^
_b_ blame     [_q_]: Cancel
_c_ clone
_i_ init
_p_ pull
_s_ status
"
  ("s" magit-status)
  ("b" magit-blame)
  ("c" magit-clone)
  ("i" magit-init)
  ("p" magit-pull)
  ("q" nil))

;; yasnippet
(defhydra hydra-yasnippet (:color blue :hint nil)
