diff --git a/configs/base-ctags.el b/configs/base-ctags.el index 0b438b8..d188434 100644 --- a/configs/base-ctags.el +++ b/configs/base-ctags.el @@ -47,8 +47,10 @@ (defun lsp-citre-capf-function () "A capf backend that tries lsp first, then Citre." - (let ((lsp-result (if (bound-and-true-p lsp-mode) - (lsp-completion-at-point)))) + (let ((lsp-result (if (fboundp #'eglot-completion-at-point) + (eglot-completion-at-point) + (when (fboundp #'lsp-completion-at-point) + (lsp-completion-at-point))))) (if (and lsp-result (try-completion (buffer-substring (nth 0 lsp-result) diff --git a/configs/base-eglot.el b/configs/base-eglot.el new file mode 100644 index 0000000..81350ca --- /dev/null +++ b/configs/base-eglot.el @@ -0,0 +1,18 @@ +;;; base-eglot.el --- ConfiguraciĆ³n de eglot (LSP) -*- lexical-binding: t -*- + +;; Author: kj +;; URL: https://git.kj2.me/kj/confi-emacs-actual + +;;; Commentary: + +;;; Code: + +(use-package eglot + :defer t + :straight (:type built-in) + :config + (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) + ) + +(provide 'base-eglot) +;;; base-eglot.el ends here