plugins/persistence: convert to mkNeovimPlugin and fix settings

Restrict no nonnegative numbers

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>

chore: include optionsRenamedToSettings in TODO

Merge imports

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Johan Larsson 2025-01-08 14:44:58 +01:00
parent 0ebc64a232
commit 8899663b59
No known key found for this signature in database
GPG key ID: 2A41C0FEDD6FF540
2 changed files with 53 additions and 79 deletions

View file

@ -7,15 +7,11 @@
plugins.persistence = {
enable = true;
dir.__raw = ''vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/")'';
options = [
"buffers"
"curdir"
"tabpages"
"winsize"
];
preSave = null;
saveEmpty = false;
settings = {
branch = true;
dir.__raw = ''vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/")'';
need = 1;
};
};
};
}