From 485407855dbc366aebf3d08aad7906cebc53ffa4 Mon Sep 17 00:00:00 2001 From: ZharMeny <135447733+ZharMeny@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:10:11 +0000 Subject: [PATCH 1/2] Add support for nix-ts-mode Fixes #298 --- apheleia-formatters.el | 1 + 1 file changed, 1 insertion(+) diff --git a/apheleia-formatters.el b/apheleia-formatters.el index a96272b..b15ebbb 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -343,6 +343,7 @@ rather than using this system." ;; try imposing a standard by default (nasm-mode . asmfmt) (nix-mode . nixfmt) + (nix-ts-mode . nixfmt) (perl-mode . perltidy) (php-mode . phpcs) (purescript-mode . purs-tidy) From aca55b4d78b68cf6dd4ecd2077b221b0125cbb0b Mon Sep 17 00:00:00 2001 From: ZharMeny <135447733+ZharMeny@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:17:44 +0000 Subject: [PATCH 2/2] Mention nix-ts-mode support in CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f03780b..08c169e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,8 @@ The format is based on [Keep a Changelog]. calling major-mode. Also includes setting for `indent-tabs-mode` ([#286]). * [Formatter scripts](scripts/formatters) will now work on Windows if Emacs can find the executable defined in the shebang. +* `nix-ts-mode` buffers are now formatted with nixfmt like `nix-mode` + buffers are. ### Internal * Major internal refactoring has occurred to make it possible to write