Change formatter to nixfmt
This commit is contained in:
parent
0b9fba73ea
commit
fe4492f004
2 changed files with 26 additions and 25 deletions
|
@ -240,8 +240,8 @@
|
||||||
|
|
||||||
# This is highly advised, and will prevent many possible mistakes
|
# This is highly advised, and will prevent many possible mistakes
|
||||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
} // (inputs.flake-utils.lib.eachDefaultSystem (system: {
|
}
|
||||||
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
// (inputs.flake-utils.lib.eachDefaultSystem (system: {
|
||||||
|
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,25 @@
|
||||||
{ lib
|
{
|
||||||
, writeTextDir
|
lib,
|
||||||
, formats
|
writeTextDir,
|
||||||
, kak-lsp
|
formats,
|
||||||
, # LSP packages
|
kak-lsp,
|
||||||
ccls
|
# LSP packages
|
||||||
, gopls
|
ccls,
|
||||||
, nil
|
gopls,
|
||||||
, nixpkgs-fmt
|
nil,
|
||||||
, python311Packages
|
nixfmt-rfc-style,
|
||||||
, ltex-ls
|
python311Packages,
|
||||||
, nodePackages
|
ltex-ls,
|
||||||
, tailwindcss-language-server
|
nodePackages,
|
||||||
, fsautocomplete
|
tailwindcss-language-server,
|
||||||
, metals
|
fsautocomplete,
|
||||||
, texlab
|
metals,
|
||||||
, tinymist
|
texlab,
|
||||||
, marksman
|
tinymist,
|
||||||
, templ
|
marksman,
|
||||||
, rust-analyzer
|
templ,
|
||||||
, ...
|
rust-analyzer,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Configuration for kak-lsp
|
# Configuration for kak-lsp
|
||||||
|
@ -75,7 +76,7 @@ let
|
||||||
filetypes = [ "nix" ];
|
filetypes = [ "nix" ];
|
||||||
roots = [ "flake.nix" "shell.nix" ".git" ];
|
roots = [ "flake.nix" "shell.nix" ".git" ];
|
||||||
settings.nil = {
|
settings.nil = {
|
||||||
formatting.command = [ "${lib.getExe nixpkgs-fmt}" ];
|
formatting.command = [ "${lib.getExe nixfmt-rfc-style}" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
pylsp = {
|
pylsp = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue