Skip to content

Commit

Permalink
fix(neovim): update persist rule
Browse files Browse the repository at this point in the history
  • Loading branch information
yuma140902 committed Sep 5, 2024
1 parent 5a8d06c commit 6cc6037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neovim/nvim/lua/pl/persisted.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function M.config()
reset_prompt_after_deletion = true, -- whether to reset prompt after session deleted
},
should_save = function()
return vim.fn.argv()[1] ~= "."
return vim.fn.argc() == 0 or vim.fn.argv()[1] == "DUMMY"
end
}
end
Expand Down

0 comments on commit 6cc6037

Please sign in to comment.