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