\#+begin\_src emacs-lisp
(use-package company
:ensure t
:custom
(company-minimum-prefix-length 1)
(company-idle-delay 0)
(company-tooltip-align-annotations t)
(company-tooltip-limit 20)
(company-tooltip-minimum 5)
(company-tooltip-flip-when-above t)
(company-tooltip-margin 2)
:config
(defun my-prog-mode-hook()
(setq-local company-backends
'((company-dabbrev-code :with company-yasnippet))))
(add-hook 'prog-mode-hook #'my-prog-mode-hook)
(global-company-mode))
\#+end\_src
​
I have spent so long and i can't figure out how to get multiple backends to work at the same time im trying to get snippet completion mostly and also want completion with eglot