-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto-save
clobbers marks
#44
Comments
I just tried, for me marks stay. Please post your config and a reliable Steps To Reproduce. It might be that you have other autocommands that depend on save events that are triggered by the auto save. In this case you might try |
Any answer on this @gegnew ? Otherwise I'd like to close it. |
Hi @primeapple, I noticed that only Try this MWE: local root = vim.fn.fnamemodify("./.repro", ":p")
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
local plugins = {
-- "okuuva/auto-save.nvim",
-- opts = {},
}
require("lazy").setup(plugins, { root = root .. "/plugins", }) Try (un)commenting the two lines in |
Yeah, I can reproduce that. To me it seems that the So if you find a way to get it working that manual saving doesn't clear the |
Perhaps use |
Opened a PR for this. I tested it locally and it seems to work. But please reassure yourself. |
Use `lockmarks` in write command to keep `[` and `]` marks after saving. Thanks @simonmandlik --------- Co-authored-by: okuuva <okuuva@users.noreply.github.com>
Please confirm, that the commit changed it for you, then feel free to close @simonmandlik |
It did, thanks! But I can't close, the issue is not mine |
Fixed in #53. |
yup, just that.
auto-save
removes all marks every time it runs.Any way to avoid this?
Cheers!
The text was updated successfully, but these errors were encountered: