GitHub - johnson-christopher/powerline-evil: Utilities for better Evil support f...
source link: https://github.com/johnson-christopher/powerline-evil
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
powerline-evil
Utilities for better Evil support for Powerline.
Installation
(require 'powerline-evil)
Faces
There are custom faces for each evil mode in the format powerline-evil-<state>-face
. The appropriate value is returned by powerline-evil-face
based on the current state, so once these faces are configured you can use that function in your theme to apply the correct face.
Functions
The following helper functions for building powerline themes are provided by this package:
powerline-evil-face
: Returns the appropriate face for the current evil state as described in the Faces section.powerline-evil-tag
: Returns the tag for the current evil state. See Options for details about configuring the tag style.
Themes
The package provides the following three themes:
powerline-evil-center-color-theme
: This is the same as thepowerline-center-evil-theme
that comes with Powerline, except the evil state section is color coded.powerline-evil-vim-theme
: This is the same as thepowerline-vim-theme
that comes with Powerline, except with the evil state added to the beginning of the line.powerline-evil-vim-color-theme
: This is the same as thepowerline-evil-vim-theme
above, except the evil state section is color coded.
Options
The only configuration option (apart from the face customization) is powerline-evil-tag-style
which is used to modify the behavior of powerline-evil-tag
. It has 3 possible values:
standard
: It will simply return the current value ofevil-mode-line-tag
as it is provided by the evil package.verbose
: It will return the name of the evil state in upper case. For the visual state ifevil-visual-selection
is block or line it will add those labels to the tag as well.visual-expanded
: For all but the visual state this is the same asstandard
. For visual state ifevil-visual-selection
is block it will replace the angle brackets around the "V" with "+". If it is line it will replace the brackets with "-".
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK