mirror of
https://github.com/powerline/powerline.git
synced 2025-09-25 02:48:11 +02:00
Add bufnr and modified_indicator segments to tabline
This commit is contained in:
parent
a792fb0e1c
commit
31731a93da
@ -15,7 +15,7 @@
|
|||||||
"position": "information:additional",
|
"position": "information:additional",
|
||||||
"single_tab": "line_current",
|
"single_tab": "line_current",
|
||||||
"many_tabs": "line_current",
|
"many_tabs": "line_current",
|
||||||
"bufnr": "information:unimportant",
|
"bufnr": "file_directory",
|
||||||
"winnr": "information:unimportant",
|
"winnr": "information:unimportant",
|
||||||
"tabnr": "file_directory"
|
"tabnr": "file_directory"
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,12 @@
|
|||||||
"exclude_modes": ["tab", "buf", "buf_nc"],
|
"exclude_modes": ["tab", "buf", "buf_nc"],
|
||||||
"priority": 5
|
"priority": 5
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "bufnr",
|
||||||
|
"after": " ",
|
||||||
|
"exclude_modes": ["tab", "buf", "tab_nc"],
|
||||||
|
"priority": 5
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "file_directory",
|
"name": "file_directory",
|
||||||
"priority": 40
|
"priority": 40
|
||||||
@ -23,6 +29,11 @@
|
|||||||
"display_no_file": true
|
"display_no_file": true
|
||||||
},
|
},
|
||||||
"priority": 10
|
"priority": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "modified_indicator",
|
||||||
|
"exclude_modes": ["tab", "tab_nc"],
|
||||||
|
"priority": 5
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -26,7 +26,7 @@ catch
|
|||||||
cquit
|
cquit
|
||||||
endtry
|
endtry
|
||||||
|
|
||||||
if result isnot# '%#Pl_240_5789784_235_2500134_NONE# ./%#Pl_244_8421504_235_2500134_bold#abc %#Pl_244_8421504_235_2500134_NONE# %#Pl_240_5789784_235_2500134_NONE#./%#Pl_244_8421504_235_2500134_bold#def %#Pl_235_2500134_240_5789784_NONE# %#Pl_250_12369084_240_5789784_NONE#./%#Pl_231_16777215_240_5789784_bold#ghi %#Pl_240_5789784_236_3158064_NONE# %#Pl_231_16777215_236_3158064_NONE# %#Pl_252_13684944_236_3158064_NONE# %#Pl_235_2500134_252_13684944_bold# Bufs '
|
if result isnot# '%#Pl_240_5789784_235_2500134_NONE# 1 %#Pl_240_5789784_235_2500134_NONE#./%#Pl_244_8421504_235_2500134_bold#abc %#Pl_244_8421504_235_2500134_NONE# %#Pl_240_5789784_235_2500134_NONE#2 %#Pl_240_5789784_235_2500134_NONE#./%#Pl_244_8421504_235_2500134_bold#def %#Pl_235_2500134_240_5789784_NONE# %#Pl_250_12369084_240_5789784_NONE#./%#Pl_231_16777215_240_5789784_bold#ghi %#Pl_240_5789784_236_3158064_NONE# %#Pl_231_16777215_236_3158064_NONE# %#Pl_252_13684944_236_3158064_NONE# %#Pl_235_2500134_252_13684944_bold# Bufs '
|
||||||
call writefile(['Unexpected tabline (2)', result], 'message.fail')
|
call writefile(['Unexpected tabline (2)', result], 'message.fail')
|
||||||
cquit
|
cquit
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user