mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(format): add :lang purescript formatter
This commit is contained in:
@ -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.")))
|
Reference in New Issue
Block a user