feat(format): add :lang purescript formatter

This commit is contained in:
Ellis Kenyő 2022-08-16 21:06:47 +01:00 committed by Ellis Kenyo
parent 5cbc7a0258
commit d1697cb4d9
No known key found for this signature in database
GPG key ID: 298BE5D997EBAA02
2 changed files with 7 additions and 0 deletions

View file

@ -8,6 +8,8 @@
#'purescript-indentation-mode
#'rainbow-delimiters-mode)
(set-formatter! 'purs-tidy '("purs-tidy" "format") :modes '(purescript-mode))
(map! :localleader
:map purescript-mode-map
"t" #'psc-ide-show-type

View 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.")))