no-neck-pain.nvim
no-neck-pain.nvim copied to clipboard
Doesn't work with persisted.nvim
Description
When I use NoNeckPain and exit neovim. Next time I open nvim, persisted.nvim should load my last session, but it instead opens the neovim start page. I'm not sure if this is an issue with NoNeckPain or Persisted. If it's something with Persisted I'll gladly report it over there. :)
Steps to reproduce
Installed persisted.nvim with autoload
enabled.
-
nvim
- open a file
-
:NoNeckPain
-
:q
-
nvim
Expected behavior
Should open the last opened file at the same position.
Environment
- Neovim version: Nightly v0.10.0-dev-c795835
- no-neck-pain.nvim version: commit
34625be12649666b7ccb08761087cc97bb788552
Okay seems to be more Persisted related. When I enable scratch pads, persisted reopens that.
I guess I'll have to teach persisted how to ignore them.
Tried this, but doesn't work:
vim.api.nvim_create_autocmd("User", {
pattern = "PersistedSavePre",
callback = function
require("no-neck-pain").disable()
end
})
I asked the question in the persisted.nvim discussions: https://github.com/olimorris/persisted.nvim/discussions/128
Thanks a lot for using the plugin @okkdev and investigating the issue, if there is any help needed on my side don't hesitate to ping!