mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Update default configuration
This commit is contained in:
parent
039526f720
commit
87d5db9af7
20
powerline/config.json
Normal file
20
powerline/config.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"common": {
|
||||||
|
"dividers": {
|
||||||
|
"left": {
|
||||||
|
"hard": "⮀",
|
||||||
|
"soft": "⮁"
|
||||||
|
},
|
||||||
|
"right": {
|
||||||
|
"hard": "⮂",
|
||||||
|
"soft": "⮃"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ext": {
|
||||||
|
"vim": {
|
||||||
|
"colorscheme": "default",
|
||||||
|
"theme": "default"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -22,15 +22,17 @@ class Powerline(object):
|
|||||||
|
|
||||||
sys.path[:0] = self.search_paths
|
sys.path[:0] = self.search_paths
|
||||||
|
|
||||||
# Load main config file, limited to the current extension
|
# Load main config file
|
||||||
self.config = self._load_json_config('config')[ext]
|
config = self._load_json_config('config')
|
||||||
|
self.config = config['common']
|
||||||
|
self.config_ext = config['ext'][ext]
|
||||||
|
|
||||||
# Load and initialize colorscheme
|
# Load and initialize colorscheme
|
||||||
colorscheme_config = self._load_json_config(os.path.join('colorschemes', self.config['colorscheme']))
|
colorscheme_config = self._load_json_config(os.path.join('colorschemes', self.config_ext['colorscheme']))
|
||||||
self.colorscheme = Colorscheme(colorscheme_config)
|
self.colorscheme = Colorscheme(colorscheme_config)
|
||||||
|
|
||||||
# Load and initialize extension theme
|
# Load and initialize extension theme
|
||||||
theme_config = self._load_json_config(os.path.join('themes', ext, self.config['theme']))
|
theme_config = self._load_json_config(os.path.join('themes', ext, self.config_ext['theme']))
|
||||||
self.theme = Theme(ext, theme_config)
|
self.theme = Theme(ext, theme_config)
|
||||||
|
|
||||||
# Load and initialize extension renderer
|
# Load and initialize extension renderer
|
||||||
|
@ -8,17 +8,6 @@ class Renderer(object):
|
|||||||
ATTR_ITALIC = 2
|
ATTR_ITALIC = 2
|
||||||
ATTR_UNDERLINE = 4
|
ATTR_UNDERLINE = 4
|
||||||
|
|
||||||
dividers = {
|
|
||||||
'l': {
|
|
||||||
'hard': u'⮀',
|
|
||||||
'soft': u'⮁',
|
|
||||||
},
|
|
||||||
'r': {
|
|
||||||
'hard': u'⮂',
|
|
||||||
'soft': u'⮃',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, colorscheme, theme):
|
def __init__(self, colorscheme, theme):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user