vim: Add quickfix window statusline

Closes #419
This commit is contained in:
Kim Silkebækken 2013-04-11 11:00:21 +02:00
parent 739514efc5
commit 8230f542c6
3 changed files with 42 additions and 1 deletions

View File

@ -36,7 +36,8 @@
"theme": "default",
"local_themes": {
"cmdwin": "cmdwin",
"help": "help"
"help": "help",
"quickfix": "quickfix"
}
},
"wm": {

View File

@ -0,0 +1,36 @@
{
"segment_data": {
"file_name": {
"contents": "Location List"
}
},
"segments": {
"left": [
{
"type": "string",
"name": "file_name",
"draw_soft_divider": false
},
{
"type": "string",
"highlight_group": ["background"],
"draw_soft_divider": false,
"draw_hard_divider": false,
"width": "auto"
}
],
"right": [
{
"type": "string",
"name": "line_current_symbol",
"highlight_group": ["line_current_symbol", "line_current"]
},
{
"name": "line_current",
"draw_soft_divider": false,
"width": 3,
"align": "r"
}
]
}
}

View File

@ -13,3 +13,7 @@ def help(matcher_info):
def cmdwin(matcher_info):
name = matcher_info['buffer'].name
return name and os.path.basename(name) == '[Command Line]'
def quickfix(matcher_info):
return str(getbufvar(matcher_info['bufnr'], '&buftype')) == 'quickfix'