Don't use company-elm if +lsp
This commit is contained in:
parent
e0f8fbee22
commit
3c81d059de
1 changed files with 5 additions and 7 deletions
|
@ -1,12 +1,10 @@
|
||||||
;;; lang/elm/config.el -*- lexical-binding: t; -*-
|
;;; lang/elm/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(after! elm-mode
|
(after! elm-mode
|
||||||
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
|
(if (featurep! +lsp)
|
||||||
|
(add-hook 'elm-mode-local-vars-hook #'lsp!)
|
||||||
|
(set-company-backend! 'elm-mode 'company-elm))
|
||||||
|
|
||||||
(when (featurep! +lsp)
|
|
||||||
(add-hook 'elm-mode-local-vars-hook #'lsp!))
|
|
||||||
|
|
||||||
(set-company-backend! 'elm-mode 'company-elm)
|
|
||||||
(set-repl-handler! 'elm-mode #'run-elm-interactive)
|
(set-repl-handler! 'elm-mode #'run-elm-interactive)
|
||||||
(set-pretty-symbols! 'elm-mode
|
(set-pretty-symbols! 'elm-mode
|
||||||
:null "null"
|
:null "null"
|
||||||
|
@ -22,4 +20,4 @@
|
||||||
(use-package! flycheck-elm
|
(use-package! flycheck-elm
|
||||||
:when (featurep! :checkers syntax)
|
:when (featurep! :checkers syntax)
|
||||||
:after elm-mode
|
:after elm-mode
|
||||||
:config (add-to-list 'flycheck-checkers 'elm nil #'eq))
|
:config (add-to-list 'flycheck-checkers 'elm))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue