Skip to content

Commit

Permalink
plugins/none-ls: add formatting source: trim_newlines & trim_whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
budimanjojo authored and GaetanLepage committed Dec 8, 2023
1 parent ee7e489 commit 7e8250d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/none-ls/servers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tests/test-sources/plugins/none-ls.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
protolint.enable = true;
rustfmt.enable = true;
sqlfluff.enable = true;
trim_newlines.enable = true;
trim_whitespace.enable = true;
};
};
};
Expand Down

0 comments on commit 7e8250d

Please sign in to comment.