mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Add cmdwin statusline for vim
This commit is contained in:
parent
29793259e1
commit
2f361711fe
@ -35,5 +35,5 @@ endfunction
|
||||
|
||||
augroup Powerline
|
||||
autocmd!
|
||||
autocmd BufEnter,BufWinEnter,WinEnter * call s:UpdateWindows()
|
||||
autocmd BufEnter,BufWinEnter,WinEnter,CmdwinEnter * call s:UpdateWindows()
|
||||
augroup END
|
||||
|
@ -33,6 +33,7 @@
|
||||
"colorscheme": "default",
|
||||
"theme": "default",
|
||||
"local_themes": {
|
||||
"cmdwin": "cmdwin",
|
||||
"help": "help"
|
||||
}
|
||||
}
|
||||
|
15
powerline/config_files/themes/vim/cmdwin.json
Normal file
15
powerline/config_files/themes/vim/cmdwin.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"segments": {
|
||||
"left": [
|
||||
{
|
||||
"type": "string",
|
||||
"contents": "Command Line",
|
||||
"highlight_group": ["file_name"]
|
||||
},
|
||||
{
|
||||
"type": "filler",
|
||||
"highlight_group": ["background"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -7,3 +7,7 @@ import vim
|
||||
|
||||
def help():
|
||||
return bool(int(vim.eval('&buftype is# "help"')))
|
||||
|
||||
|
||||
def cmdwin():
|
||||
return bool(int(vim.eval('bufname("%") == "[Command Line]"')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user