merge: pull request #5893 from gilbertwong96/fix/erlang

fix(erlang): fix broken erlang-mode
This commit is contained in:
Henrik Lissner 2022-01-05 04:06:28 +01:00 committed by GitHub
commit b51d7d6d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 13 deletions

View file

@ -7,12 +7,3 @@
:config :config
(when (featurep! +lsp) (when (featurep! +lsp)
(add-hook 'erlang-mode-local-vars-hook #'lsp!))) (add-hook 'erlang-mode-local-vars-hook #'lsp!)))
(use-package! company-erlang
:when (featurep! :completion company)
:unless (featurep! +lsp)
:hook (erlang-mode . company-erlang-init)
:config
(add-hook! 'erlang-mode-hook
(add-hook 'after-save-hook #'ivy-erlang-complete-reparse nil t)))

View file

@ -0,0 +1,6 @@
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/erlang/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")

View file

@ -1,7 +1,4 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; lang/erlang/packages.el ;;; lang/erlang/packages.el
(package! erlang :pin "118cb37bd5b9e9cb792f0463e46fdb04f151dcd5") (package! erlang :pin "c1ab4b5424be7504cfc3c4e87a2116b7731d8f2d")
(unless (featurep! +lsp)
(when (featurep! :completion company)
(package! company-erlang :pin "bc0524a16f17b66c7397690e4ca0e004f09ea6c5")))