2017-06-08 11:47:56 +02:00
|
|
|
;;; lang/crystal/config.el -*- lexical-binding: t; -*-
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2018-09-07 22:08:11 -04:00
|
|
|
(after! crystal-mode
|
2018-06-15 17:27:48 +02:00
|
|
|
(set-lookup-handlers! 'crystal-mode
|
2018-02-11 03:16:03 -05:00
|
|
|
:definition #'crystal-def-jump
|
2021-07-30 17:05:04 -04:00
|
|
|
:references #'crystal-tool-imp)
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! +lsp)
|
2022-03-24 02:19:52 +01:00
|
|
|
(add-hook 'crystal-mode-local-vars-hook #'lsp! 'append))
|
2021-12-09 23:28:45 -06:00
|
|
|
(map! :localleader
|
|
|
|
:map crystal-mode-map
|
|
|
|
:prefix "t"
|
|
|
|
"a" #'crystal-spec-all
|
|
|
|
"v" #'crystal-spec-buffer
|
|
|
|
"s" #'crystal-spec-line
|
|
|
|
"t" #'crystal-spec-switch))
|
2015-08-27 23:25:35 -04:00
|
|
|
|
2017-12-07 23:59:49 -05:00
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! flycheck-crystal
|
2022-08-17 01:16:08 +01:00
|
|
|
:when (and (modulep! :checkers syntax)
|
|
|
|
(not (modulep! :checkers syntax +flymake)))
|
2018-06-21 15:54:36 +02:00
|
|
|
:after crystal-mode)
|
2018-02-06 02:04:58 -05:00
|
|
|
|
|
|
|
|
2019-10-19 14:54:31 -04:00
|
|
|
(use-package! flycheck-ameba
|
2022-08-17 01:16:08 +01:00
|
|
|
:when (and (modulep! :checkers syntax)
|
|
|
|
(not (modulep! :checkers syntax +flymake)))
|
2019-10-19 14:54:31 -04:00
|
|
|
:after crystal-mode
|
|
|
|
:config (flycheck-ameba-setup))
|
|
|
|
|
|
|
|
|
2019-07-23 12:44:03 +02:00
|
|
|
(use-package! inf-crystal
|
2018-09-07 22:08:11 -04:00
|
|
|
:commands crystal-switch-to-inf)
|