feat(neovim): setup nixfmt & nix-linter
nix-linter setup doesn't seem to fully work yet
This commit is contained in:
parent
2d27c1f2aa
commit
fc3eb14f3f
2 changed files with 25 additions and 0 deletions
home/editors
|
@ -19,6 +19,13 @@
|
|||
|
||||
# linters & formatters
|
||||
nodePackages.eslint
|
||||
# TODO uses custom script until json support is fixed
|
||||
(pkgs.writeScriptBin "nix-linter" ''
|
||||
echo '['
|
||||
${nix-linter}/bin/nix-linter --json-stream "$1" | sed '$!s/$/,/'
|
||||
echo ']'
|
||||
'')
|
||||
nixfmt
|
||||
# nodePackages.stylelint
|
||||
nodePackages.prettier
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue