all repos — nixfiles @ d0ef97c29db5c4f915c1a3717c9118d7ed958455

System and user configuration, managed by nix and home-manager

Emacs: configure company-tide to not clobber company-backends

Alan Pearce
commit

d0ef97c29db5c4f915c1a3717c9118d7ed958455

parent

85e5ec5e21dc780a8da3194be221dcec53127969

1 file changed, 1 insertion(+), 6 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1001,12 +1001,7 @@ :ghook ('typescript-mode-hook #'tide-setup)
:init (progn (setq tide-completion-setup-company-backend nil) (flycheck-add-next-checker 'typescript-tide 'javascript-eslint) - (company-set-secondary-backend-for-mode typescript-mode 'company-tide)) - :config (progn - ;; loading this package has the annoying effect of breaking my company configuration - ;; upstream fix: https://github.com/ananthakumaran/tide/pull/384 - (when (eq (car company-backends) 'company-tide) - (setq company-backends (remq 'company-tide company-backends))))) + (company-set-secondary-backend-for-mode typescript-mode 'company-tide))) ;;;; Reformat on save