1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

tests/plugins/project-nvim: set datapath to a writable directory

This commit is contained in:
Gaetan Lepage 2025-09-13 20:28:58 +02:00 committed by Gaétan Lepage
parent f9e602a3c3
commit c9f56ea275

View file

@ -1,6 +1,11 @@
{
empty = {
plugins.project-nvim.enable = true;
plugins.project-nvim = {
enable = true;
# The default datapath is unwritable in the sandbox
settings.datapath.__raw = "os.getenv('TMPDIR')";
};
};
telescopeEnabled = {
@ -10,11 +15,18 @@
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 = {
@ -37,7 +49,7 @@
show_hidden = false;
silent_chdir = true;
scope_chdir = "global";
data_path.__raw = "vim.fn.stdpath('data')";
datapath.__raw = "vim.fn.stdpath('data')";
};
};
};