feat(crystal): add spec keybinds

Adds test running shortcuts similar to :lang ruby's.
This commit is contained in:
Jack Thorne 2021-12-09 23:28:45 -06:00 committed by Henrik Lissner
parent e92ce51c13
commit a46f741a89

View file

@ -5,7 +5,14 @@
:definition #'crystal-def-jump
:references #'crystal-tool-imp)
(when (featurep! +lsp)
(add-hook 'crystal-mode-local-vars-hook #'lsp!)))
(add-hook 'crystal-mode-local-vars-hook #'lsp!))
(map! :localleader
:map crystal-mode-map
:prefix "t"
"a" #'crystal-spec-all
"v" #'crystal-spec-buffer
"s" #'crystal-spec-line
"t" #'crystal-spec-switch))
(use-package! flycheck-crystal