feat(crystal): add spec keybinds
Adds test running shortcuts similar to :lang ruby's.
This commit is contained in:
parent
e92ce51c13
commit
a46f741a89
1 changed files with 8 additions and 1 deletions
|
@ -5,7 +5,14 @@
|
||||||
:definition #'crystal-def-jump
|
:definition #'crystal-def-jump
|
||||||
:references #'crystal-tool-imp)
|
:references #'crystal-tool-imp)
|
||||||
(when (featurep! +lsp)
|
(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
|
(use-package! flycheck-crystal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue