mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
Moved `extraFiles` from `modules/output.nix` into its own file `modules/files.nix`. Users should now assign text to a `text` attribute, however they could also assign a file path to a `source` attribute instead. The old method of directly assigning a string still works, and is coerced to the new type along with a deprecation warning.
15 lines
261 B
Nix
15 lines
261 B
Nix
{
|
|
query = {
|
|
extraFiles = {
|
|
"testing/test-case.nix".source = ./extra-files.nix;
|
|
"testing/123.txt".text = ''
|
|
One
|
|
Two
|
|
Three
|
|
'';
|
|
"queries/lua/injections.scm".text = ''
|
|
;; extends
|
|
'';
|
|
};
|
|
};
|
|
}
|