Lazygit
This commit is contained in:
parent
d560d0bf84
commit
248babab24
|
@ -16,5 +16,6 @@ in
|
||||||
{
|
{
|
||||||
home.packages = [ ircgay pkgs.catgirl ];
|
home.packages = [ ircgay pkgs.catgirl ];
|
||||||
xdg.configFile."catgirl/tilde".text = mkCatgirlNetwork "tilde";
|
xdg.configFile."catgirl/tilde".text = mkCatgirlNetwork "tilde";
|
||||||
satellite.persistence.at.state.apps.catgirl.directories = [ "${config.xdg.dataHome}/catgirl" ];
|
satellite.persistence.at.state.apps.catgirl.directories =
|
||||||
|
[ "${config.xdg.dataHome}/catgirl" ];
|
||||||
}
|
}
|
||||||
|
|
9
home/features/cli/lazygit.nix
Normal file
9
home/features/cli/lazygit.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, ... }: {
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
settings.promptToReturnFromSubprocess = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
satellite.persistence.at.state.apps.lazygit.directories =
|
||||||
|
[ "${config.xdg.configHome}/lazygit" ];
|
||||||
|
}
|
|
@ -24,7 +24,12 @@ local function runLocal(functionName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", ":source %<cr>", opts("Run [l]ua [f]ile "))
|
vim.keymap.set(
|
||||||
|
"n",
|
||||||
|
"<leader>lf",
|
||||||
|
"<cmd>source %<cr>",
|
||||||
|
opts("Run [l]ua [f]ile ")
|
||||||
|
)
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
"n",
|
"n",
|
||||||
"<leader>ls",
|
"<leader>ls",
|
||||||
|
|
|
@ -106,7 +106,12 @@ let
|
||||||
# Use global clipboard using *cp*
|
# Use global clipboard using *cp*
|
||||||
(keymap "nv" "<f11>" ''"+'' "Use global clipboard")
|
(keymap "nv" "<f11>" ''"+'' "Use global clipboard")
|
||||||
# Save using *ji*
|
# Save using *ji*
|
||||||
(nmap "<f12>" "<cmd>silent write<cr>" "Save current file")
|
(nmap "<f12>"
|
||||||
|
(thunk ''
|
||||||
|
-- If we don't do this, the statusbar will flash for a second...
|
||||||
|
vim.cmd([[silent! write]])
|
||||||
|
vim.opt.stl = vim.opt.stl
|
||||||
|
'') "Save current file")
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Newline without comments
|
# {{{ Newline without comments
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
./features/cli/pass.nix
|
./features/cli/pass.nix
|
||||||
./features/cli/nix-index.nix
|
./features/cli/nix-index.nix
|
||||||
./features/cli/catgirl.nix
|
./features/cli/catgirl.nix
|
||||||
|
./features/cli/lazygit.nix
|
||||||
./features/wayland/hyprland
|
./features/wayland/hyprland
|
||||||
./features/neovim
|
./features/neovim
|
||||||
];
|
];
|
||||||
|
@ -52,8 +53,6 @@
|
||||||
# }}}
|
# }}}
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.lazygit.enable = true;
|
|
||||||
|
|
||||||
home.sessionVariables.QT_SCREEN_SCALE_FACTORS = 1.4; # Bigger text in qt apps
|
home.sessionVariables.QT_SCREEN_SCALE_FACTORS = 1.4; # Bigger text in qt apps
|
||||||
|
|
||||||
satellite = {
|
satellite = {
|
||||||
|
|
Loading…
Reference in a new issue