mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 19:40:06 +02:00
plugin/persistence: init + tests (#645)
This commit is contained in:
parent
a9698ea2b0
commit
0b87e5b70c
4 changed files with 87 additions and 0 deletions
16
tests/test-sources/plugins/utils/persistence.nix
Normal file
16
tests/test-sources/plugins/utils/persistence.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.persistence.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.persistence = {
|
||||
enable = true;
|
||||
|
||||
dir.__raw = ''vim.fn.expand(vim.fn.stdpath("state") .. "/sessions/")'';
|
||||
options = ["buffers" "curdir" "tabpages" "winsize"];
|
||||
preSave = null;
|
||||
saveEmpty = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue