Final touchs for eglot configuration.

This commit is contained in:
kj 2022-11-19 13:59:47 -04:00
parent f696234932
commit 42e325db91
3 changed files with 14 additions and 7 deletions

View File

@ -10,9 +10,20 @@
(use-package eglot (use-package eglot
:defer t :defer t
:straight (:type built-in) :straight (:type built-in)
:hook ((css-mode . eglot-ensure)
(html-mode . eglot-ensure))
:config :config
(add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio")))
) )
;; Emmet (mientras veo como hacer funcionar emmet-ls)
(use-package emmet-mode
:defer t
:straight t
:hook
((html-mode . emmet-mode)
(web-mode . emmet-mode))
)
(provide 'init-eglot) (provide 'init-eglot)
;;; init-eglot.el ends here ;;; init-eglot.el ends here

View File

@ -73,19 +73,13 @@
doom-modeline-indent-info nil doom-modeline-indent-info nil
doom-modeline-persp-name t)) doom-modeline-persp-name t))
;; Emmet - Una ayuda para escribir HTML rápidamente (escribre doc, luego preciona C-j y lo entenderás)
(use-package emmet-mode
:defer t
:straight t
:hook (html-mode . emmet-mode))
;; Revisar sintaxis en vivo ;; Revisar sintaxis en vivo
(use-package flycheck (use-package flycheck
;; :diminish flycheck-mode ;; :diminish flycheck-mode
:defer t :defer t
:straight t :straight t
:hook (prog-mode . (lambda () :hook (prog-mode . (lambda ()
(unless (derived-mode-p 'js-mode 'makefile-mode) (unless (derived-mode-p 'makefile-mode)
(flycheck-mode)))) (flycheck-mode))))
) )

View File

@ -12,6 +12,8 @@
:straight t :straight t
:mode :mode
("\\.js$" . js-mode) ("\\.js$" . js-mode)
:hook
(js-mode . eglot-ensure)
:config :config
(setq js-indent-level 2)) (setq js-indent-level 2))