1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-20 17:29:40 +01:00
nixvim/tests/test-sources/plugins/by-name/project-nvim/default.nix

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 = [ ];
exclude_dirs = [ ];
show_hidden = false;
silent_chdir = true;
scope_chdir = "global";
datapath.__raw = "vim.fn.stdpath('data')";
};
};
};
}