1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-13 14:02:46 +01:00
nixvim/tests/test-sources/plugins/by-name/project-nvim/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

56 lines
1.2 KiB
Nix

{
empty = {
plugins.project-nvim = {
enable = true;
# The default datapath is unwritable in the sandbox
settings.datapath.__raw = "os.getenv('TMPDIR')";
};
};
telescopeEnabled = {
plugins.telescope = {
enable = true;
};
plugins.project-nvim = {
enable = true;
enableTelescope = true;
# The default datapath is unwritable in the sandbox
settings.datapath.__raw = "os.getenv('TMPDIR')";
};
plugins.web-devicons.enable = true;
};
defaults = {
# Attempts at writing to `datapath`:
# ERROR: Invalid `datapath`, reverting to default.
test.runNvim = false;
plugins.project-nvim = {
enable = true;
settings = {
manual_mode = false;
detection_methods = [
"lsp"
"pattern"
];
patterns = [
".git"
"_darcs"
".hg"
".bzr"
".svn"
"Makefile"
"package.json"
];
ignore_lsp.__empty = { };
exclude_dirs.__empty = { };
show_hidden = false;
silent_chdir = true;
scope_chdir = "global";
datapath.__raw = "vim.fn.stdpath('data')";
};
};
};
}