Configured helix nix formatter

This commit is contained in:
William 2023-08-19 12:08:07 -03:00
parent 3f8bd4cb7e
commit 394e6fa46d
3 changed files with 10 additions and 15 deletions

View file

@ -166,8 +166,7 @@
}; };
devShells = { devShells = {
"x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell { "x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell { packages = with nixpkgs.legacyPackages."x86_64-linux"; [ nil nixfmt ];
packages = with nixpkgs.legacyPackages."x86_64-linux"; [ nil nixfmt ];
}; };
"aarch64-linux".default = "aarch64-linux".default =
nixpkgs.legacyPackages."aarch64-linux".mkShell { nixpkgs.legacyPackages."aarch64-linux".mkShell {

View file

@ -34,7 +34,6 @@
mangohud mangohud
mpv mpv
nextcloud-client nextcloud-client
nixfmt
nix-init nix-init
obs-studio obs-studio
p7zip p7zip

View file

@ -23,6 +23,7 @@
cursor-shape.insert = "bar"; cursor-shape.insert = "bar";
mouse = false; mouse = false;
soft-wrap.enable = true; soft-wrap.enable = true;
auto-format = true;
}; };
keys.normal.space = { keys.normal.space = {
space = "file_picker"; space = "file_picker";
@ -31,6 +32,13 @@
esc = [ "collapse_selection" "keep_primary_selection" ]; esc = [ "collapse_selection" "keep_primary_selection" ];
}; };
}; };
languages = {
language = [{
name = "nix";
auto-format = true;
formatter.command = "nixfmt";
}];
};
themes.catppuccin-mocha_transparent = { themes.catppuccin-mocha_transparent = {
inherits = "catppuccin_mocha"; inherits = "catppuccin_mocha";
"ui.background" = "{}"; "ui.background" = "{}";
@ -150,24 +158,13 @@
}; };
}; };
micro = {
enable = true;
settings = {
clipboard = "terminal";
mkparents = true;
scrollbar = true;
tabstospaces = true;
tabsize = 2;
colorscheme = "simple";
};
};
fish = { fish = {
enable = true; enable = true;
interactiveShellInit = "nix-your-shell fish | source"; interactiveShellInit = "nix-your-shell fish | source";
loginShellInit = "nix-your-shell fish | source"; loginShellInit = "nix-your-shell fish | source";
shellAliases = { shellAliases = {
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"''; wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
h = "hx";
}; };
functions = { functions = {
fish_greeting = ""; fish_greeting = "";