Created
April 5, 2019 22:55
-
-
Save mtgto/5f2a3db017e7adbdad6991dec4163581 to your computer and use it in GitHub Desktop.
First step to write a new Powerline segment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
def helloworld(pl): | |
return [{ | |
'contents': 'こんにちは、世界', | |
'highlight_groups': ['information:regular'] | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See detail https://powerline.readthedocs.io/en/master/develop/segments.html
helloworld.py
to~/.config/powerline/segments
"paths": ["~/.config/powerline/segments"]
to "common" dict in~/.config/powerline/config.json
.themes/*/*.json
like{"function": "helloworld.helloworld"}
.