mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 12:14:32 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -1,23 +1,22 @@
|
|||
{ lib, pkgs }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
}: {
|
||||
/*
|
||||
Write a lua file to the nix store, formatted using stylua.
|
||||
Write a lua file to the nix store, formatted using stylua.
|
||||
|
||||
# Type
|
||||
# Type
|
||||
|
||||
```
|
||||
writeLua :: String -> String -> Derivation
|
||||
```
|
||||
```
|
||||
writeLua :: String -> String -> Derivation
|
||||
```
|
||||
|
||||
# Arguments
|
||||
# Arguments
|
||||
|
||||
- [name] The name of the derivation
|
||||
- [text] The content of the lua file
|
||||
- [name] The name of the derivation
|
||||
- [text] The content of the lua file
|
||||
*/
|
||||
writeLua = name: text:
|
||||
pkgs.runCommand name {inherit text;} ''
|
||||
writeLua =
|
||||
name: text:
|
||||
pkgs.runCommand name { inherit text; } ''
|
||||
echo -n "$text" > "$out"
|
||||
|
||||
${lib.getExe pkgs.stylua} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue