Lokaltog/vim-powerline — Issue #56: Create Ctrl-P theme
Author: Lokaltog
Created: 2012-01-21 10:49:46+00:00
State: open
Labels: Confirmed, Feature

Because of the latest changes in Powerline the Ctrl-P theme had to be removed. It's impossible to use the regular way of setting statuslines because Ctrl-P disables autocmds, but Ctrl-P provides a way of defining callback functions which can return the statusline to be used in the Ctrl-P buffer.

A generic solution for creating statusline callback functions should be created. The arguments passed to the callback function (in `a:000`) will be made available to all the segments in the statusline as numbered variables (`$1`, `$2`, etc). These variables can be passed to functions if they need to be modified in any way (e.g. `%{Powerline#Functions#ctrlp#FixText('$1')}`).