update lua config
This commit is contained in:
parent
768e4e1b9e
commit
e474f94fb6
14 changed files with 417 additions and 66 deletions
|
@ -227,16 +227,18 @@ return {
|
|||
local callback = function()
|
||||
local cwd = cx.active.current.cwd
|
||||
|
||||
if this.cwd ~= cwd then
|
||||
this.cwd = cwd
|
||||
ya.manager_emit("plugin", {
|
||||
this._id,
|
||||
ya.quote(tostring(cwd), true),
|
||||
})
|
||||
end
|
||||
ya.emit("plugin", {
|
||||
this._id,
|
||||
ya.quote(tostring(cwd), true),
|
||||
})
|
||||
end
|
||||
|
||||
ps.sub("cd", callback)
|
||||
ps.sub("rename", callback)
|
||||
ps.sub("bulk", callback)
|
||||
ps.sub("move", callback)
|
||||
ps.sub("trash", callback)
|
||||
ps.sub("delete", callback)
|
||||
ps.sub("tab", callback)
|
||||
|
||||
if Yatline ~= nil then
|
||||
|
@ -244,6 +246,10 @@ return {
|
|||
local status = this.output
|
||||
local githead = {}
|
||||
|
||||
if not status then
|
||||
return githead
|
||||
end
|
||||
|
||||
local branch = config.show_branch and get_branch(status) or ""
|
||||
if branch ~= nil and branch ~= "" then
|
||||
table.insert(githead, { branch[2], theme.prefix_color })
|
||||
|
@ -301,7 +307,7 @@ return {
|
|||
entry = function(_, job)
|
||||
local args = job.args or job
|
||||
local command = Command("git")
|
||||
:args({ "status", "--ignore-submodules=dirty", "--branch", "--show-stash", "--ahead-behind" })
|
||||
:arg({ "status", "--ignore-submodules=dirty", "--branch", "--show-stash", "--ahead-behind" })
|
||||
:cwd(args[1])
|
||||
:env("LANGUAGE", "en_US.UTF-8")
|
||||
:stdout(Command.PIPED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue