function and nixvim

This commit is contained in:
2026-03-01 23:20:25 +01:00
parent 027a74e588
commit a7c5193cf7
2 changed files with 69 additions and 30 deletions

View File

@@ -85,38 +85,64 @@
}; };
update = { update = {
body = # fish body =
'' if isNixOS then
echo "===System update===" # fish
''
echo "=== System packages update==="
pushd /etc/nixos
nix flake update
reload_system
popd
if not type -q yay echo "===User packages update==="
echo "Yay not found… Is this Arch? If yes, then please consider installing it!" pushd $HOME/.config/home-manager
else nix flake update
yay reload_dotfiles
end popd
if type -q pacman
echo "===Remove orphans==="
set orphans (pacman -Qtdq)
if test (count $orphans) -gt 0
sudo pacman -Rns $orphans
end
end
if type -q flatpak echo "=== Flatpak update==="
echo "===Flatpak update===" if type -q flatpak
flatpak update --noninteractive echo "===Flatpak update==="
echo "===Flatpak remove unused===" flatpak update --noninteractive
flatpak uninstall --unused echo "===Flatpak remove unused==="
end flatpak uninstall --unused
end
''
else
# fish
''
echo "===System update==="
if type -q nix-channel if not type -q yay
echo "===Nix update===" echo "Yay not found… Please consider installing it!"
nix-channel --update else
echo "===Nix garbage collection===" yay
home-manager expire-generations "-7 days" end
end
''; if type -q pacman
echo "===Remove orphans==="
set orphans (pacman -Qtdq)
if test (count $orphans) -gt 0
sudo pacman -Rns $orphans
end
end
if type -q flatpak
echo "===Flatpak update==="
flatpak update --noninteractive
echo "===Flatpak remove unused==="
flatpak uninstall --unused
end
if type -q nix-channel
echo "===Nix update==="
nix-channel --update
echo "===Nix garbage collection==="
home-manager expire-generations "-7 days"
end
'';
}; };
rm = { rm = {

View File

@@ -100,6 +100,14 @@
action.__raw = "function() require('harpoon'):list():next() end"; action.__raw = "function() require('harpoon'):list():next() end";
options.desc = "Toggle next harpoon buffer"; options.desc = "Toggle next harpoon buffer";
} }
{
key = "j";
action= "jzz";
}
{
key = "k";
action= "kzz";
}
]; ];
autoGroups = { autoGroups = {
@@ -203,9 +211,14 @@
}; };
}; };
indent-blankline = { cursorline = {
enable = true; enable = true;
settings.scope.enabled = true; timeout = 0;
};
mini-indentscope = {
enable = true;
settings.draw.delay = 0;
}; };
cmp = { cmp = {