Skip to content

Instantly share code, notes, and snippets.

@Lokaltog
Created November 13, 2012 08:53
Show Gist options
  • Save Lokaltog/4064717 to your computer and use it in GitHub Desktop.
Save Lokaltog/4064717 to your computer and use it in GitHub Desktop.
Powerline config idea
class Colorscheme:
COLOR_LIGHTBLUE = 123
COLOR_MEDIUMBLUE = 123
COLOR_DARKBLUE = 123
COLOR_...
class SolarizedColorscheme(Colorscheme):
COLOR_LIGHTBLUE = 321
COLOR_...
{
"vim":
{
"theme": "default",
"colorscheme": "default",
"cache_dir": "{plugin_dir}",
"cache_file": "Powerline_{theme}_{colorscheme}_{symbols}.cache",
"cache_enable": true,
"override": {
"theme": {
"default": {
"remove": [
"filetype",
"fileencoding"
],
"insert": [
["whitespace", "after", "filename"]
]
}
},
"dividers": {
"l": {
"hard": "⮀",
"soft": "⮁"
}
}
},
"plugin_options": {
"core": {
"filename_style": "short",
"modes": {
"n": "NORMAL",
"i": "INSERT"
},
"symbols": {
"line": "⭡"
},
"linenumber": {
"show_column": true,
"show_total": true
}
},
"fugitive": {
"branch_style": "short",
"symbols": {
"branch": "⭠"
}
}
}
}
}
@ZyX-I
Copy link

ZyX-I commented Nov 13, 2012

        "theme": {
            "default": {
                "remove": [
                    "filetype",
                    "fileencoding"
                ],
                "insert": [
                    ["whitespace", "after", "filename"]
                ]
            }
        },

wondering how a) you are going to make it work with buffer-specific segments and b) how can I guess what is going on here? It does not provide a single idea about the resulting order of segments, especially when I want to override them completely. Neither it does allow me to say I want only these segments and exactly nothing more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment