Function xplr::lua::util::lscolor

source ·
pub fn lscolor<'a>(util: Table<'a>, lua: &Lua) -> Result<Table<'a>>
Expand description

Get a [Style][3] object for the given path based on the LS_COLORS environment variable.

Type: function( path:string ) -> [Style][3]

Example:

xplr.util.lscolor("Desktop")
-- { fg = "Red", bg = nil, add_modifiers = {}, sub_modifiers = {} }