make my own auto save the auto-save plugin is being weird

This commit is contained in:
RingOfStorms (Josh) 2024-05-13 10:31:24 -05:00
parent 2063357974
commit 9bce2b0d42
5 changed files with 33 additions and 27 deletions

View file

@ -27,7 +27,7 @@ U.keymaps({
{ ";", ":", desc = "No shift to enter command mode with semicolon. Alias ; to :", mode = nvx },
{ "<leader>Q", "<nop>", mode = nvx }, -- don't do normal Q quit
{ "<leader>a", "<esc>ggVG", desc = "Select all", mode = nvx },
{ "Q", "<cmd>SessionSave<cr><cmd>qa!<cr>", desc = "Quit all", mode = nvx },
{ "Q", "<cmd>SessionSave<cr><cmd>qa<cr>", desc = "Quit all", mode = nvx },
{ "<leader>y", '"+y', desc = "Copy to system clipboard", mode = nvx },
{ "<leader>p", '"+p', desc = "Paste from system clipboard", mode = nvx },
{ "<esc>", "<cmd>nohlsearch<cr><esc>", desc = "Clear search on escape" },
@ -54,7 +54,8 @@ U.keymaps({
{
"<leader>q",
function()
-- Custom close/quit
-- Custom close/quituto
--
-- * if non empty buffer, we will simply open a new empty buffer unless
-- it is in the close always list
-- * if empty buffer, then we will quit this buffer