Disable lsp mode by default on rust and enable php.
This commit is contained in:
parent
98174ef392
commit
fb890c4ceb
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@ projectile-bookmarks.eld
|
|||||||
.org-id-locations
|
.org-id-locations
|
||||||
org-roam.db
|
org-roam.db
|
||||||
lsp-cache/
|
lsp-cache/
|
||||||
|
.cache/
|
||||||
|
url/
|
@ -7,17 +7,17 @@
|
|||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(use-package company-php :defer t)
|
;;(use-package company-php :defer t)
|
||||||
(use-package ac-php :defer t)
|
;;(use-package ac-php :defer t)
|
||||||
|
|
||||||
(use-package php-mode
|
(use-package php-mode
|
||||||
:defer t
|
:defer t
|
||||||
;; :bind ("C-c d b" . php-doc-block)
|
:hook (php-mode . lsp)
|
||||||
:hook (php-mode . (lambda ()
|
:hook (php-mode . (lambda ()
|
||||||
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
|
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
|
||||||
(company-mode t) ; habilita company mode
|
(company-mode t) ; habilita company mode
|
||||||
(ac-php-core-eldoc-setup) ; habilita soporte para ELDoc
|
;;(ac-php-core-eldoc-setup) ; habilita soporte para ELDoc
|
||||||
(add-to-list 'company-backends 'company-ac-php-backend) ; Agregar ac-php para a company
|
;;(add-to-list 'company-backends '(company-capf company-ac-php-backend :with company-yasnippet)) ; Agregar ac-php para a company
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq rustic-lsp-server 'rls)
|
;;(setq rustic-lsp-server 'rls)
|
||||||
(setq rustic-lsp-client 'lsp)
|
;;(setq rustic-lsp-client 'lsp)
|
||||||
;;(setq rustic-lsp-client nil)
|
(setq rustic-lsp-client nil)
|
||||||
(push 'rustic-clippy flycheck-checkers))
|
(push 'rustic-clippy flycheck-checkers))
|
||||||
|
|
||||||
(provide 'lang-rust)
|
(provide 'lang-rust)
|
||||||
|
Loading…
Reference in New Issue
Block a user