mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
modules/files: format files
submodule output
Instead of `pkgs.writeText`, use `helpest.writeLua` to ensure the file is formatted with stylua.
This commit is contained in:
parent
f11f991e09
commit
a6cc4c6c33
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
name,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -22,6 +22,6 @@
|
|||
path = lib.mkDefault name;
|
||||
type = lib.mkDefault (if lib.hasSuffix ".vim" name then "vim" else "lua");
|
||||
# No need to use mkDerivedConfig; this option is readOnly.
|
||||
plugin = pkgs.writeText derivationName config.content;
|
||||
plugin = helpers.writeLua derivationName config.content;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue