Remove ivy-erlang-complete
It's redundant with company-erlang, which uses ivy-erlang-complete as a backend anyhow. Fixes #2786
This commit is contained in:
parent
8f685a3c31
commit
cf180bea92
2 changed files with 8 additions and 15 deletions
|
@ -3,7 +3,10 @@
|
||||||
(use-package! erlang
|
(use-package! erlang
|
||||||
:mode ("\\.erlang\\'" . erlang-mode)
|
:mode ("\\.erlang\\'" . erlang-mode)
|
||||||
:mode ("/rebar\\.config\\(?:\\.script\\)?\\'" . erlang-mode)
|
:mode ("/rebar\\.config\\(?:\\.script\\)?\\'" . erlang-mode)
|
||||||
:mode ("/\\(?:app\\|sys\\)\\.config\\'" . erlang-mode))
|
:mode ("/\\(?:app\\|sys\\)\\.config\\'" . erlang-mode)
|
||||||
|
:config
|
||||||
|
(when (featurep! +lsp)
|
||||||
|
(add-hook 'erlang-mode-local-vars-hook #'lsp!)))
|
||||||
|
|
||||||
|
|
||||||
(use-package! flycheck-rebar3
|
(use-package! flycheck-rebar3
|
||||||
|
@ -12,18 +15,10 @@
|
||||||
:config (flycheck-rebar3-setup))
|
:config (flycheck-rebar3-setup))
|
||||||
|
|
||||||
|
|
||||||
(use-package! ivy-erlang-complete
|
|
||||||
:when (featurep! :completion ivy)
|
|
||||||
:hook (erlang-mode . ivy-erlang-complete-init)
|
|
||||||
:config
|
|
||||||
(add-hook! 'erlang-mode-hook
|
|
||||||
(add-hook 'after-save-hook #'ivy-erlang-complete-reparse nil t)))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! company-erlang
|
(use-package! company-erlang
|
||||||
:when (featurep! :completion company)
|
:when (featurep! :completion company)
|
||||||
:unless (featurep! +lsp)
|
:unless (featurep! +lsp)
|
||||||
:hook (erlang-mode . company-erlang-init))
|
:hook (erlang-mode . company-erlang-init)
|
||||||
|
:config
|
||||||
(when (featurep! +lsp)
|
(add-hook! 'erlang-mode-hook
|
||||||
(add-hook 'erlang-mode-local-vars-hook #'lsp!))
|
(add-hook 'after-save-hook #'ivy-erlang-complete-reparse nil t)))
|
||||||
|
|
|
@ -5,7 +5,5 @@
|
||||||
(when (featurep! :checkers syntax)
|
(when (featurep! :checkers syntax)
|
||||||
(package! flycheck-rebar3 :pin "3cca1268c5"))
|
(package! flycheck-rebar3 :pin "3cca1268c5"))
|
||||||
(unless (featurep! +lsp)
|
(unless (featurep! +lsp)
|
||||||
(when (featurep! :completion ivy)
|
|
||||||
(package! ivy-erlang-complete :pin "c443dba0c4"))
|
|
||||||
(when (featurep! :completion company)
|
(when (featurep! :completion company)
|
||||||
(package! company-erlang :pin "bc0524a16f")))
|
(package! company-erlang :pin "bc0524a16f")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue