Files
dotfiles/.config/yazi/init.lua
Archie Fox 06b8ee8caf Init commit
2025-06-08 06:59:19 +03:00

37 lines
1.0 KiB
Lua

require("full-border"):setup({
-- Available values: ui.Border.PLAIN, ui.Border.ROUNDED
type = ui.Border.ROUNDED,
})
require("gvfs"):setup({
-- (Optional) Allowed keys to select device.
which_keys = "1234567890qwertyuiopasdfghjklzxcvbnm-=[]\\;',./!@#$%^&*()_+{}|:\"<>?",
-- (Optional) Save file.
-- Default: ~/.config/yazi/gvfs.private
save_path = os.getenv("HOME") .. "/.config/yazi/gvfs.private",
-- (Optional) disable/enable remember passwords using keyring. Default: true
enabled_keyring = false,
-- (Optional) save password automatically after mounting. Default: false
save_password_autoconfirm = true,
})
require("git"):setup()
require("starship"):setup()
function Linemode:size_and_mtime()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then
time = ""
elseif os.date("%Y", time) == os.date("%Y") then
time = os.date("%b %d %H:%M", time)
else
time = os.date("%b %d %Y", time)
end
local size = self._file:size()
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
end