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:
parent
f9e602a3c3
commit
c9f56ea275
1 changed files with 14 additions and 2 deletions
|
|
@ -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')";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue