Disable lsp mode by default on rust and enable php.

This commit is contained in:
kj 2022-05-27 12:23:09 -04:00
parent 98174ef392
commit fb890c4ceb
3 changed files with 11 additions and 9 deletions

4
.gitignore vendored
View File

@ -8,4 +8,6 @@ bookmarks
projectile-bookmarks.eld
.org-id-locations
org-roam.db
lsp-cache/
lsp-cache/
.cache/
url/

View File

@ -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
))
)

View File

@ -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)