feat(format): add :lang purescript formatter
This commit is contained in:
parent
5cbc7a0258
commit
d1697cb4d9
2 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
||||||
#'purescript-indentation-mode
|
#'purescript-indentation-mode
|
||||||
#'rainbow-delimiters-mode)
|
#'rainbow-delimiters-mode)
|
||||||
|
|
||||||
|
(set-formatter! 'purs-tidy '("purs-tidy" "format") :modes '(purescript-mode))
|
||||||
|
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
:map purescript-mode-map
|
:map purescript-mode-map
|
||||||
"t" #'psc-ide-show-type
|
"t" #'psc-ide-show-type
|
||||||
|
|
5
modules/lang/purescript/doctor.el
Normal file
5
modules/lang/purescript/doctor.el
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
;;; lang/purescript/doctor.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(when (modulep! :editor format)
|
||||||
|
(unless (executable-find "purs-tidy")
|
||||||
|
(warn! "Could not find purs-tidy. Formatting will be disabled.")))
|
Loading…
Add table
Add a link
Reference in a new issue