mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-09 03:56:05 +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 = {
|
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 = {
|
telescopeEnabled = {
|
||||||
|
|
@ -10,11 +15,18 @@
|
||||||
plugins.project-nvim = {
|
plugins.project-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTelescope = true;
|
enableTelescope = true;
|
||||||
|
|
||||||
|
# The default datapath is unwritable in the sandbox
|
||||||
|
settings.datapath.__raw = "os.getenv('TMPDIR')";
|
||||||
};
|
};
|
||||||
plugins.web-devicons.enable = true;
|
plugins.web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
# Attempts at writing to `datapath`:
|
||||||
|
# ERROR: Invalid `datapath`, reverting to default.
|
||||||
|
test.runNvim = false;
|
||||||
|
|
||||||
plugins.project-nvim = {
|
plugins.project-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -37,7 +49,7 @@
|
||||||
show_hidden = false;
|
show_hidden = false;
|
||||||
silent_chdir = true;
|
silent_chdir = true;
|
||||||
scope_chdir = "global";
|
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