mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 19:54:32 +02:00
wrappers/output: fix initContent
formatting
Originally introduced in 21c233919d
This commit is contained in:
parent
546b4b029d
commit
1cc2e02fca
1 changed files with 4 additions and 8 deletions
|
@ -122,7 +122,6 @@ with lib;
|
||||||
+ config.content;
|
+ config.content;
|
||||||
|
|
||||||
init = helpers.writeLua "init.lua" customRC;
|
init = helpers.writeLua "init.lua" customRC;
|
||||||
initPath = toString init;
|
|
||||||
|
|
||||||
extraWrapperArgs = builtins.concatStringsSep " " (
|
extraWrapperArgs = builtins.concatStringsSep " " (
|
||||||
(optional (config.extraPackages != [ ]) ''--prefix PATH : "${makeBinPath config.extraPackages}"'')
|
(optional (config.extraPackages != [ ]) ''--prefix PATH : "${makeBinPath config.extraPackages}"'')
|
||||||
|
@ -140,17 +139,14 @@ with lib;
|
||||||
{
|
{
|
||||||
type = lib.mkForce "lua";
|
type = lib.mkForce "lua";
|
||||||
finalPackage = wrappedNeovim;
|
finalPackage = wrappedNeovim;
|
||||||
initContent = customRC;
|
initContent = readFile init;
|
||||||
inherit initPath;
|
initPath = "${init}";
|
||||||
|
|
||||||
printInitPackage = pkgs.writeShellApplication {
|
printInitPackage = pkgs.writeShellApplication {
|
||||||
name = "nixvim-print-init";
|
name = "nixvim-print-init";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = [ pkgs.bat ];
|
||||||
stylua
|
|
||||||
bat
|
|
||||||
];
|
|
||||||
text = ''
|
text = ''
|
||||||
stylua - <"${initPath}" | bat --language=lua
|
bat --language=lua "${init}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue