better git stash

This commit is contained in:
2026-11-06 10:07:06 +01:00
parent 00ca16dad2
commit afaad61c44
@@ -17,6 +17,14 @@ uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C"
vim.cmd("cnoreabbrev wn noautocmd write") vim.cmd("cnoreabbrev wn noautocmd write")
uc("GitBackup", function(opts)
vim.fn.system({ "git", "stash", "push", "-m", opts.args })
vim.fn.system({ "git", "stash", "apply", "--index", "stash@{0}" })
end, {
nargs = 1,
desc = "Stash changes without affecting the status",
})
-- ac("LspAttach", { -- ac("LspAttach", {
-- desc = "Notify user about attached LSP clients", -- desc = "Notify user about attached LSP clients",
-- group = aug("LSPOnAttach", { clear = true }), -- group = aug("LSPOnAttach", { clear = true }),