Init commit
This commit is contained in:
36
.config/yazi/init.lua
Normal file
36
.config/yazi/init.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user