Lazygit
This commit is contained in:
parent
d560d0bf84
commit
248babab24
|
@ -16,5 +16,6 @@ in
|
|||
{
|
||||
home.packages = [ ircgay pkgs.catgirl ];
|
||||
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
|
||||
|
||||
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(
|
||||
"n",
|
||||
"<leader>ls",
|
||||
|
|
|
@ -106,7 +106,12 @@ let
|
|||
# Use global clipboard using *cp*
|
||||
(keymap "nv" "<f11>" ''"+'' "Use global clipboard")
|
||||
# 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
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
./features/cli/pass.nix
|
||||
./features/cli/nix-index.nix
|
||||
./features/cli/catgirl.nix
|
||||
./features/cli/lazygit.nix
|
||||
./features/wayland/hyprland
|
||||
./features/neovim
|
||||
];
|
||||
|
@ -52,8 +53,6 @@
|
|||
# }}}
|
||||
];
|
||||
|
||||
programs.lazygit.enable = true;
|
||||
|
||||
home.sessionVariables.QT_SCREEN_SCALE_FACTORS = 1.4; # Bigger text in qt apps
|
||||
|
||||
satellite = {
|
||||
|
|
Loading…
Reference in a new issue