From 7e8250dc58efe2f99805e43653c524593d842854 Mon Sep 17 00:00:00 2001 From: budimanjojo Date: Wed, 6 Dec 2023 10:43:57 +0700 Subject: [PATCH] plugins/none-ls: add formatting source: trim_newlines & trim_whitespace --- plugins/none-ls/servers.nix | 2 ++ tests/test-sources/plugins/none-ls.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/none-ls/servers.nix b/plugins/none-ls/servers.nix index 2ec29591..e119fc63 100644 --- a/plugins/none-ls/servers.nix +++ b/plugins/none-ls/servers.nix @@ -167,6 +167,8 @@ with lib; let taplo = { package = pkgs.taplo; }; + trim_newlines = {}; + trim_whitespace = {}; }; }; # Format the servers to be an array of attrs like the following example diff --git a/tests/test-sources/plugins/none-ls.nix b/tests/test-sources/plugins/none-ls.nix index e46883a7..bb2a2c86 100644 --- a/tests/test-sources/plugins/none-ls.nix +++ b/tests/test-sources/plugins/none-ls.nix @@ -104,6 +104,8 @@ protolint.enable = true; rustfmt.enable = true; sqlfluff.enable = true; + trim_newlines.enable = true; + trim_whitespace.enable = true; }; }; };