syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.7k stars 4.9k forks source link

Alchemist major-mode commands not available #12918

Closed albertmoravec closed 4 years ago

albertmoravec commented 5 years ago

Description :octocat:

Alchemist (Elixir) standard major mode commands are not available, only code formatting using SPC m = is available.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Which-key only displays code formatting Alchemist major-mode commands doesn't work (they are undefined)

Expected behaviour: :heart: :smile: Alchemist major-mode commands (described here) are available and work

System Info :computer:

albertmoravec commented 4 years ago

Figured out what happened using git bisect. Commit ac30247811d28e86c4b33d6150d678d5f5824330 added option to select either alchemist or lsp backend, however the default option is nil (and even though nil should mean to fallback to alchemist, that didn't happen for some reason). For future reference, it is documented here.

Just adding (elixir :variables elixir-backend 'alchemist) to dotspacemacs-configuration-layers is enough to get the previous functionality working again.