Skip to content

Commit

Permalink
Change formatter to nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Aug 25, 2024
1 parent 0deaac7 commit fd5f3c1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions home-modules/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@
inputs.nixvim.homeManagerModules.nixvim
];

home.packages = with pkgs; [
alejandra
];

programs.nixvim = {
enable = true;
viAlias = true;
vimAlias = true;

extraPackages = with pkgs; [
glslls
nixfmt-rfc-style
];

opts = {
Expand Down Expand Up @@ -331,9 +328,9 @@
nil-ls = {
enable = true;
settings = {
formatting.command = ["alejandra"];
formatting.command = ["nixfmt"];
nix = {
maxMemoryMB = 8192;
maxMemoryMB = 16384;
binary = "${pkgs.writeShellScript "nil-nix-wrapper" ''
nix --allow-import-from-derivation "$@"
''}";
Expand Down

0 comments on commit fd5f3c1

Please sign in to comment.