Fix lsp to works with another company-backends.
This commit is contained in:
parent
97ec0558dd
commit
0411b624da
@ -46,13 +46,14 @@
|
|||||||
;; Automcompletado
|
;; Automcompletado
|
||||||
(use-package company
|
(use-package company
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:init
|
||||||
(global-company-mode)
|
(global-company-mode)
|
||||||
|
:config
|
||||||
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
|
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
|
||||||
(setq company-idle-delay 0) ; mostrar autocompletado lo más rápido posible
|
(setq company-idle-delay 0) ; mostrar autocompletado lo más rápido posible
|
||||||
(setq company-minimum-prefix-length 1) ; mostrar autocompletado desde que se coloca la primera letra.
|
(setq company-minimum-prefix-length 1) ; mostrar autocompletado desde que se coloca la primera letra.
|
||||||
(setq company-backends '((company-files :with company-yasnippet)
|
(setq company-backends '((company-capf :with company-yasnippet)
|
||||||
(company-capf :with company-yasnippet)
|
(company-files :with company-yasnippet)
|
||||||
(company-dabbrev-code company-ctags company-keywords :with company-yasnippet)
|
(company-dabbrev-code company-ctags company-keywords :with company-yasnippet)
|
||||||
(company-dabbrev :with company-yasnippet)))
|
(company-dabbrev :with company-yasnippet)))
|
||||||
)
|
)
|
||||||
@ -174,9 +175,10 @@
|
|||||||
;; Languaje server protocol
|
;; Languaje server protocol
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:defer t
|
:defer t
|
||||||
;; :hook (js-mode . lsp-deferred)
|
|
||||||
:custom
|
:custom
|
||||||
(lsp-headerline-breadcrumb-enable nil))
|
(lsp-headerline-breadcrumb-enable nil)
|
||||||
|
:config
|
||||||
|
(setq lsp-completion-provider :none))
|
||||||
|
|
||||||
;; Interface para lsp
|
;; Interface para lsp
|
||||||
(use-package lsp-ui :defer t)
|
(use-package lsp-ui :defer t)
|
||||||
@ -280,7 +282,7 @@
|
|||||||
:init
|
:init
|
||||||
(winner-mode 1))
|
(winner-mode 1))
|
||||||
|
|
||||||
;;
|
;; Permitir snippets
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -292,10 +294,9 @@
|
|||||||
((prog-mode feature-mode) . yas-minor-mode-on)
|
((prog-mode feature-mode) . yas-minor-mode-on)
|
||||||
(html-mode . yas-minor-mode))
|
(html-mode . yas-minor-mode))
|
||||||
|
|
||||||
;;
|
;; Coleción de snippets
|
||||||
(use-package yasnippet-snippets :ensure t :defer t)
|
(use-package yasnippet-snippets :ensure t :defer t)
|
||||||
|
|
||||||
|
|
||||||
;; Org-Mode
|
;; Org-Mode
|
||||||
(require 'org-config)
|
(require 'org-config)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user