fix(nim): swap nimfmt with nimpretty

Nim 2.x+ comes with its own formatter (nimpretty).

Close: #7578
Co-authored-by: pietrangelo <pietrangelo@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2024-03-05 02:29:18 -05:00
parent aad8ec1895
commit 79429ecc56
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 5 additions and 6 deletions

View file

@ -12,7 +12,7 @@ nimsuggest isn't installed."
(when (and nimsuggest-path (file-executable-p nimsuggest-path))
(nimsuggest-mode))))
(set-formatter! 'nmfmt '("nimfmt" filepath) :modes '(nim-mode))
(set-formatter! 'nmfmt '("nimpretty" filepath) :modes '(nim-mode))
(when (featurep :system 'windows)
;; TODO File PR/report upstream (https://github.com/nim-lang/nim-mode)