Created
July 1, 2015 15:07
-
-
Save rbtnn/739a2fabf3317a95c965 to your computer and use it in GitHub Desktop.
nyagos gitブランチ補完
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nyagos.completion_hook = function (c) | |
local bs = { | |
"submodules", | |
"add", | |
}; | |
if c.text:match('^git ') then | |
for b in nyagos.eval('git branch'):gmatch('[^ \n*>-/]+') do | |
table.insert(bs, b); | |
end | |
end | |
return bs; | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment