yazi: reformated using nixfmt-rfc

This commit is contained in:
Divit Mittal 2024-04-12 17:20:23 +05:30
parent a7d2d78ecf
commit 0360bc8c5b
1 changed files with 25 additions and 25 deletions

View File

@ -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 <https://yazi-rs.github.io/docs/tips>
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 <https://yazi-rs.github.io/docs/tips>
for more information
'';
};
};
config = mkIf cfg.enable {