fix(nvim): fix staging bind

This commit is contained in:
matt1432 2023-11-23 01:15:32 -05:00
parent 36e9b90df6
commit a461d39d81
3 changed files with 9 additions and 10 deletions

View file

@ -4,11 +4,9 @@ local function visual_stage()
local first_line = vim.fn.line('v') local first_line = vim.fn.line('v')
local last_line = vim.fn.getpos('.')[2] local last_line = vim.fn.getpos('.')[2]
gitsigns.stage_hunk({ first_line, last_line }) gitsigns.stage_hunk({ first_line, last_line })
-- Switch back to normal mode, there may be a cleaner way to do this
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<Esc>', true, false, true), 't', false)
end end
vim.keymap.set("v", "gbhs", function() vim.keymap.set("v", "gs", function()
visual_stage() visual_stage()
end) end)

View file

@ -62,7 +62,7 @@
}; };
# Set your time zone. # Set your time zone.
time.timeZone = "America/Toronto"; time.timeZone = "America/Montreal";
# No touchy # No touchy
system.stateVersion = "23.11"; system.stateVersion = "23.11";

View file

@ -7,12 +7,13 @@
nix-gaming.nixosModules.steamCompat nix-gaming.nixosModules.steamCompat
]; ];
programs.steam = { programs = {
steam = {
enable = true; enable = true;
extraCompatPackages = [ extraCompatPackages = [
# pkgs.luxtorpeda
nix-gaming.packages.${pkgs.system}.proton-ge nix-gaming.packages.${pkgs.system}.proton-ge
]; ];
}; };
};
} }