mirror of
https://github.com/powerline/powerline.git
synced 2025-07-25 23:05:32 +02:00
Add Gundo statuslines
This commit is contained in:
parent
1fe98e1c3d
commit
3d3450d8c1
@ -40,7 +40,9 @@
|
|||||||
"quickfix": "quickfix",
|
"quickfix": "quickfix",
|
||||||
|
|
||||||
"powerline.matchers.plugin.nerdtree.nerdtree": "plugin/nerdtree",
|
"powerline.matchers.plugin.nerdtree.nerdtree": "plugin/nerdtree",
|
||||||
"powerline.matchers.plugin.ctrlp.ctrlp": "plugin/ctrlp"
|
"powerline.matchers.plugin.ctrlp.ctrlp": "plugin/ctrlp",
|
||||||
|
"powerline.matchers.plugin.gundo.gundo": "plugin/gundo",
|
||||||
|
"powerline.matchers.plugin.gundo.gundo_preview": "plugin/gundo-preview"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"wm": {
|
"wm": {
|
||||||
|
19
powerline/config_files/themes/vim/plugin/gundo-preview.json
Normal file
19
powerline/config_files/themes/vim/plugin/gundo-preview.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"default_module": "powerline.segments.plugin.gundo",
|
||||||
|
"segments": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"highlight_group": ["gundo.name", "file_name"],
|
||||||
|
"contents": "Undo diff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"highlight_group": ["gundo.background", "background"],
|
||||||
|
"draw_soft_divider": false,
|
||||||
|
"draw_hard_divider": false,
|
||||||
|
"width": "auto"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
19
powerline/config_files/themes/vim/plugin/gundo.json
Normal file
19
powerline/config_files/themes/vim/plugin/gundo.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"default_module": "powerline.segments.plugin.gundo",
|
||||||
|
"segments": {
|
||||||
|
"left": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"highlight_group": ["gundo.name", "file_name"],
|
||||||
|
"contents": "Undo tree"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"highlight_group": ["gundo.background", "background"],
|
||||||
|
"draw_soft_divider": false,
|
||||||
|
"draw_hard_divider": false,
|
||||||
|
"width": "auto"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
13
powerline/matchers/plugin/gundo.py
Normal file
13
powerline/matchers/plugin/gundo.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# vim:fileencoding=utf-8:noet
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
def gundo(matcher_info):
|
||||||
|
name = matcher_info['buffer'].name
|
||||||
|
return name and os.path.basename(name) == '__Gundo__'
|
||||||
|
|
||||||
|
|
||||||
|
def gundo_preview(matcher_info):
|
||||||
|
name = matcher_info['buffer'].name
|
||||||
|
return name and os.path.basename(name) == '__Gundo_Preview__'
|
Loading…
x
Reference in New Issue
Block a user