ElixirLS - the Elixir Language Server

Thank you. Only added that last block to Spacemacs’ dotspacemacs/user-config function so now it looks like this:

(defun dotspacemacs/user-config ()
  (use-package lsp-mode
    :commands lsp
    :ensure t
    :diminish lsp-mode
    :hook
    (elixir-mode . lsp)
    :init
    (add-to-list 'exec-path "/Users/dimi/bin/elixir-ls/release"))

  (add-hook 'elixir-mode-hook
            (lambda ()
              (add-hook 'before-save-hook #'lsp-format-buffer nil t)))
  )

lsp-mode plus elixir-ls work, and so does formatting on save.

Very grateful for the assist. :023:

1 Like