diff --git a/docs/plugins/overview.md b/docs/plugins/overview.md index 975379c0..923de712 100644 --- a/docs/plugins/overview.md +++ b/docs/plugins/overview.md @@ -5,6 +5,9 @@ sidebar_label: Plugins (BETA) description: Learn how to extend Yazi with Lua plugins. --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + # Plugins (BETA) You can extend Yazi's functionality through Lua plugins, which need to be placed in the `plugins` subdirectory of Yazi's configuration directory, so either: @@ -275,10 +278,24 @@ If you want to debug some runtime data, use [`ya.dbg()`](/docs/plugins/utils#ya. Make sure to set the `YAZI_LOG` environment variable before starting Yazi: + + + ```sh YAZI_LOG=debug yazi ``` + + + + +```powershell +$env:YAZI_LOG = "debug"; yazi +``` + + + + otherwise, no logs will be recorded. Its value can be (in descending order of verbosity): - `debug` diff --git a/docs/tips.md b/docs/tips.md index f4d44cc5..e5dfaea1 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -367,14 +367,14 @@ Add the following code to your `~/.config/yazi/init.lua`: Status:children_add(function() local h = cx.active.current.hovered if h == nil or ya.target_family() ~= "unix" then - return ui.Line {} + return "" end return ui.Line { ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"), - ui.Span(":"), + ":", ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"), - ui.Span(" "), + " ", } end, 500, Status.RIGHT) ``` @@ -388,7 +388,7 @@ Add the following code to your `~/.config/yazi/init.lua`: ```lua Header:children_add(function() if ya.target_family() ~= "unix" then - return ui.Line {} + return "" end return ui.Span(ya.user_name() .. "@" .. ya.host_name() .. ":"):fg("blue") end, 500, Header.LEFT)