diff --git a/modules/lang/erlang/config.el b/modules/lang/erlang/config.el index 5c6779aad..1934344c2 100644 --- a/modules/lang/erlang/config.el +++ b/modules/lang/erlang/config.el @@ -22,4 +22,8 @@ (use-package! company-erlang :when (featurep! :completion company) + :unless (featurep! +lsp) :hook (erlang-mode . company-erlang-init)) + +(when (featurep! +lsp) + (add-hook 'erlang-mode-hook #'lsp!))