What does this do: programs.nixvim.path
?
#2066
-
Hi, Regarding this entry in the docs: https://nix-community.github.io/nixvim/NeovimOptions/index.html#path. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
MattSturgeon
Aug 23, 2024
Replies: 1 comment
-
It is used for programs.nixvim = {
enable = true;
files.foo = {
path = "ftplugin/python.lua";
opts.expandtab = true;
};
}; However in submodules it defaults to programs.nixvim = {
enable = true;
files."ftplugin/python.lua" = {
opts.expandtab = true;
};
}; I can't recall OTTOMH if it is used outside of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
refaelsh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is used for
files
sub-modules to define where the generated file will be installed. E.g. you can create ftplugins using nixvim modules:However in submodules it defaults to
name
, so usually you just define the attr name:I can't recall OTTOMH if it is used outside of
files
submodules, if not we should probably mark it hidden or internal. Either way we could improve its docs.