feat(format): add :lang crystal formatter
This commit is contained in:
parent
4d51e46c9f
commit
078bf0dd2e
2 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
;;; lang/crystal/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(after! crystal-mode
|
||||
(when (executable-find "crystal")
|
||||
(set-formatter! 'crystal-mode '("crystal" "tool" "format" "-") :modes '(crystal-mode)))
|
||||
|
||||
(set-lookup-handlers! 'crystal-mode
|
||||
:definition #'crystal-def-jump
|
||||
:references #'crystal-tool-imp)
|
||||
|
|
|
@ -3,3 +3,6 @@
|
|||
|
||||
(unless (executable-find "icr")
|
||||
(warn! "Couldn't find icr. REPL will not work"))
|
||||
|
||||
(unless (executable-find "crystal")
|
||||
(error! "Couldn't find crystal. Most language features will not work."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue