better git stash
This commit is contained in:
@@ -17,6 +17,14 @@ uc("NormFormat", "!c_formatter_42 *.c *.h", { desc = "comply with the norm in C"
|
||||
|
||||
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", {
|
||||
-- desc = "Notify user about attached LSP clients",
|
||||
-- group = aug("LSPOnAttach", { clear = true }),
|
||||
|
||||
Reference in New Issue
Block a user