Final touchs for eglot configuration.
This commit is contained in:
parent
f696234932
commit
42e325db91
@ -10,9 +10,20 @@
|
||||
(use-package eglot
|
||||
:defer t
|
||||
:straight (:type built-in)
|
||||
:hook ((css-mode . eglot-ensure)
|
||||
(html-mode . eglot-ensure))
|
||||
:config
|
||||
(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)
|
||||
;;; init-eglot.el ends here
|
||||
|
@ -73,19 +73,13 @@
|
||||
doom-modeline-indent-info nil
|
||||
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
|
||||
(use-package flycheck
|
||||
;; :diminish flycheck-mode
|
||||
:defer t
|
||||
:straight t
|
||||
:hook (prog-mode . (lambda ()
|
||||
(unless (derived-mode-p 'js-mode 'makefile-mode)
|
||||
(unless (derived-mode-p 'makefile-mode)
|
||||
(flycheck-mode))))
|
||||
)
|
||||
|
||||
|
@ -12,6 +12,8 @@
|
||||
:straight t
|
||||
:mode
|
||||
("\\.js$" . js-mode)
|
||||
:hook
|
||||
(js-mode . eglot-ensure)
|
||||
:config
|
||||
(setq js-indent-level 2))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user