From 0360bc8c5bee93fff7afa52f8b26c93ef35ee01d Mon Sep 17 00:00:00 2001 From: Divit Mittal <64.69.76.69.74.m@gmail.com> Date: Fri, 12 Apr 2024 17:20:23 +0530 Subject: [PATCH] yazi: reformated using nixfmt-rfc --- modules/programs/yazi.nix | 50 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/modules/programs/yazi.nix b/modules/programs/yazi.nix index e3f99963..bc7aaaeb 100644 --- a/modules/programs/yazi.nix +++ b/modules/programs/yazi.nix @@ -137,33 +137,33 @@ in { }; extraLuaConfig = mkOption { - type = types.lines; - default = ""; - example = literalExpression '' - ''' - -- Add symlink target to the status bar - function Status:name() - local h = cx.active.current.hovered - if h == nil then - return ui.Span("") - end - - local linked = "" - if h.link_to ~= nil then - linked = " -> " .. tostring(h.link_to) - end - return ui.Span(" " .. h.name .. linked) + type = types.lines; + default = ""; + example = literalExpression '' + ''' + -- Add symlink target to the status bar + function Status:name() + local h = cx.active.current.hovered + if h == nil then + return ui.Span("") end - ''' - ''; - description = '' - Configuration written to - {file}`$XDG_CONFIG_HOME/yazi/init.lua`. - See - for more information - ''; - }; + local linked = "" + if h.link_to ~= nil then + linked = " -> " .. tostring(h.link_to) + end + return ui.Span(" " .. h.name .. linked) + end + ''' + ''; + description = '' + Configuration written to + {file}`$XDG_CONFIG_HOME/yazi/init.lua`. + + See + for more information + ''; + }; }; config = mkIf cfg.enable {