From fb890c4ceb05a691142c01f4ba30ed1d50111318 Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 27 May 2022 12:23:09 -0400 Subject: [PATCH] Disable lsp mode by default on rust and enable php. --- .gitignore | 4 +++- configs/lang-php.el | 10 +++++----- configs/lang-rust.el | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 688dfe6..d7be2ad 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ bookmarks projectile-bookmarks.eld .org-id-locations org-roam.db -lsp-cache/ \ No newline at end of file +lsp-cache/ +.cache/ +url/ \ No newline at end of file diff --git a/configs/lang-php.el b/configs/lang-php.el index 6ac0d42..419f1ad 100644 --- a/configs/lang-php.el +++ b/configs/lang-php.el @@ -7,17 +7,17 @@ ;;; Code: -(use-package company-php :defer t) -(use-package ac-php :defer t) +;;(use-package company-php :defer t) +;;(use-package ac-php :defer t) (use-package php-mode :defer t - ;; :bind ("C-c d b" . php-doc-block) + :hook (php-mode . lsp) :hook (php-mode . (lambda () (local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock (company-mode t) ; habilita company mode - (ac-php-core-eldoc-setup) ; habilita soporte para ELDoc - (add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company + ;;(ac-php-core-eldoc-setup) ; habilita soporte para ELDoc + ;;(add-to-list 'company-backends '(company-capf company-ac-php-backend :with company-yasnippet)) ; Agregar ac-php para a company )) ) diff --git a/configs/lang-rust.el b/configs/lang-rust.el index 0227c0e..0a2c902 100644 --- a/configs/lang-rust.el +++ b/configs/lang-rust.el @@ -17,9 +17,9 @@ :defer t :ensure t :config - (setq rustic-lsp-server 'rls) - (setq rustic-lsp-client 'lsp) - ;;(setq rustic-lsp-client nil) + ;;(setq rustic-lsp-server 'rls) + ;;(setq rustic-lsp-client 'lsp) + (setq rustic-lsp-client nil) (push 'rustic-clippy flycheck-checkers)) (provide 'lang-rust)