mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: improve formatting
This commit is contained in:
parent
e7891f6727
commit
0c3aee7997
6 changed files with 466 additions and 39 deletions
|
|
@ -17,6 +17,21 @@
|
|||
};
|
||||
deadnix.enable = true;
|
||||
statix.enable = true;
|
||||
shfmt = {
|
||||
enable = true;
|
||||
indent_size = 4;
|
||||
simplify = true;
|
||||
# needed to replicate what my Emacs shfmt does
|
||||
# there is no builtin option for space-redirects
|
||||
package = pkgs.symlinkJoin {
|
||||
name = "shfmt";
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
paths = [ pkgs.shfmt ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/shfmt -sr
|
||||
'';
|
||||
};
|
||||
};
|
||||
shellcheck.enable = true;
|
||||
};
|
||||
settings.formatter.shellcheck.options = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue