From 0411b624da2007ff93027d4c451b3c591ce7029c Mon Sep 17 00:00:00 2001 From: kj Date: Wed, 18 May 2022 03:07:05 -0400 Subject: [PATCH] Fix lsp to works with another company-backends. --- configs/base-extensions.el | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/configs/base-extensions.el b/configs/base-extensions.el index d44b6d4..7ecf2b3 100644 --- a/configs/base-extensions.el +++ b/configs/base-extensions.el @@ -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)