confi-emacs-actual/configs/init-eglot.el

34 lines
916 B
EmacsLisp
Raw Normal View History

2022-11-19 04:33:22 +01:00
;;; init-eglot.el --- Configuración de eglot (LSP) -*- lexical-binding: t -*-
2022-11-19 03:56:34 +01:00
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
;;; Commentary:
;;; Code:
(use-package eglot
:defer t
:straight (:type built-in)
2022-11-19 18:59:47 +01:00
:hook ((css-mode . eglot-ensure)
(html-mode . eglot-ensure))
2022-11-19 03:56:34 +01:00
:config
(add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio")))
2022-11-19 20:44:14 +01:00
;; (add-to-list 'eglot-server-programs '(css-mode . ("vscode-css-language-server" "--stdio")))
;; (add-to-list 'eglot-server-programs '(html-mode . ("vscode-html-language-server" "--stdio")))
2022-11-19 19:25:30 +01:00
;; (add-hook 'eglot--managed-mode-hook (lambda () (flymake-mode -1)))
2022-11-19 20:44:14 +01:00
)
2022-11-19 03:56:34 +01:00
2022-11-19 18:59:47 +01:00
;; 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))
)
2022-11-19 04:33:22 +01:00
(provide 'init-eglot)
;;; init-eglot.el ends here