doomemacs/snippets

LaTeX module autocompletion breaks without enabling "snippets" module

LukeXuan opened this issue · 1 comments

What were you expecting?

Whatever auto-completion candidate available should work without problem

What actually happened?

In latex-mode with company completion enabled: hitting enter on a completion candidate pops the following error message:

company-call-backend-raw: Company: backend company-capf error "[yas] ‘yas-expand-snippet’ needs properly setup ‘yas-minor-mode’" with args (post-completion includegraphics)

This problem seems to be caused by three factors:

  1. yasnippets is recursively imported by company-auctex,
  2. yasnippets is not properly configured because snippets is not enabled,
  3. company-yas is included in company backends indiscriminately (this seems to be a problem for more than just latex-mode)

Steps to reproduce

  1. enable latex and company module, disable snippets module
  2. try auto-completion in latex-mode

Operating system

Fedora 39

Emacs version

Emacs 29.3 pgtk+nativecomp (custom built)

Installed commit of doom-snippets

N/A

Sorry, issued opened in the wrong repo...