doomemacs/modules/lang/crystal/config.el
Henrik Lissner 443370b4d7 feat(crystal): add +lsp flag and support
Since lsp-crystal is provided by lsp-mode.
2021-07-31 04:35:49 -04:00

23 lines
545 B
EmacsLisp

;;; lang/crystal/config.el -*- lexical-binding: t; -*-
(after! crystal-mode
(set-lookup-handlers! 'crystal-mode
:definition #'crystal-def-jump
:references #'crystal-tool-imp)
(when (featurep! +lsp)
(add-hook 'crystal-mode-local-vars-hook #'lsp!)))
(use-package! flycheck-crystal
:when (featurep! :checkers syntax)
:after crystal-mode)
(use-package! flycheck-ameba
:when (featurep! :checkers syntax)
:after crystal-mode
:config (flycheck-ameba-setup))
(use-package! inf-crystal
:commands crystal-switch-to-inf)