mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-10-27 19:20:43 +01:00
function and nixvim
This commit is contained in:
@@ -85,12 +85,38 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
update = {
|
update = {
|
||||||
body = # fish
|
body =
|
||||||
|
if isNixOS then
|
||||||
|
# fish
|
||||||
|
''
|
||||||
|
echo "=== System packages update==="
|
||||||
|
pushd /etc/nixos
|
||||||
|
nix flake update
|
||||||
|
reload_system
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo "===User packages update==="
|
||||||
|
pushd $HOME/.config/home-manager
|
||||||
|
nix flake update
|
||||||
|
reload_dotfiles
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
echo "=== Flatpak update==="
|
||||||
|
if type -q flatpak
|
||||||
|
echo "===Flatpak update==="
|
||||||
|
flatpak update --noninteractive
|
||||||
|
echo "===Flatpak remove unused==="
|
||||||
|
flatpak uninstall --unused
|
||||||
|
end
|
||||||
|
''
|
||||||
|
else
|
||||||
|
# fish
|
||||||
''
|
''
|
||||||
echo "===System update==="
|
echo "===System update==="
|
||||||
|
|
||||||
if not type -q yay
|
if not type -q yay
|
||||||
echo "Yay not found… Is this Arch? If yes, then please consider installing it!"
|
echo "Yay not found… Please consider installing it!"
|
||||||
else
|
else
|
||||||
yay
|
yay
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user