poweline_gitstatus added

This commit is contained in:
Dirk Alders 2023-04-02 07:58:52 +02:00
parent 681c31984d
commit 15072e4a15
5 changed files with 205 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# config_files
Config File Collection
* Create a softlink in your $HOME directory to .vimrc to get this vim configuration
* Create a softlink in your $HOME directory to .tmux.conf to get this vim configuration
* Create a softlink named powerline in your $HOME/.config directory to powerline_gitstatus to get this powerline configuration

View File

@ -0,0 +1,18 @@
{
"groups": {
"gitstatus": { "fg": "gray8", "bg": "gray2", "attrs": [] },
"gitstatus_branch": { "fg": "gray8", "bg": "gray2", "attrs": [] },
"gitstatus_branch_clean": { "fg": "green", "bg": "gray2", "attrs": [] },
"gitstatus_branch_dirty": { "fg": "gray8", "bg": "gray2", "attrs": [] },
"gitstatus_branch_detached": { "fg": "mediumpurple", "bg": "gray2", "attrs": [] },
"gitstatus_tag": { "fg": "darkcyan", "bg": "gray2", "attrs": [] },
"gitstatus_behind": { "fg": "gray10", "bg": "gray2", "attrs": [] },
"gitstatus_ahead": { "fg": "gray10", "bg": "gray2", "attrs": [] },
"gitstatus_staged": { "fg": "green", "bg": "gray2", "attrs": [] },
"gitstatus_unmerged": { "fg": "brightred", "bg": "gray2", "attrs": [] },
"gitstatus_changed": { "fg": "mediumorange", "bg": "gray2", "attrs": [] },
"gitstatus_untracked": { "fg": "brightestorange", "bg": "gray2", "attrs": [] },
"gitstatus_stashed": { "fg": "darkblue", "bg": "gray2", "attrs": [] },
"gitstatus:divider": { "fg": "gray8", "bg": "gray2", "attrs": [] }
}
}

View File

@ -0,0 +1,7 @@
{
"ext": {
"shell": {
"theme": "default"
}
}
}

View File

@ -0,0 +1,47 @@
{
"segments": {
"left": [
{
"function": "powerline.segments.shell.mode"
},
{
"function": "powerline.segments.common.net.hostname",
"args": {
"only_if_ssh": false,
"exclude_domain": true
},
"priority": 10
},
{
"function": "powerline.segments.common.env.user",
"priority": 30
},
{
"function": "powerline.segments.common.env.virtualenv",
"priority": 50
},
{
"function": "powerline.segments.shell.cwd",
"priority": 10
},
{
"function": "powerline.segments.shell.jobnum",
"priority": 20
},
{
"function": "powerline.segments.shell.last_status",
"priority": 10
}
],
"right": [
{
"function": "powerline.segments.shell.last_pipe_status",
"priority": 10
},
{
"function": "powerline_gitstatus.gitstatus",
"priority": 40
}
]
}
}

View File

@ -0,0 +1,128 @@
{
"segments": {
"left": [
{
"function": "mode",
"exclude_modes": ["nc"]
},
{
"function": "visual_range",
"include_modes": ["v", "V", "^V", "s", "S", "^S"],
"priority": 10
},
{
"function": "paste_indicator",
"exclude_modes": ["nc"],
"priority": 10
},
{
"function": "powerline.segments.vim.plugin.capslock.capslock_indicator",
"include_modes": ["i", "R", "Rv"],
"priority": 10
},
{
"function": "powerline_gitstatus.gitstatus",
"exclude_modes": ["nc"],
"priority": 30
},
{
"function": "readonly_indicator",
"draw_soft_divider": false,
"after": " "
},
{
"function": "file_scheme",
"priority": 20
},
{
"function": "file_directory",
"priority": 40,
"draw_soft_divider": false
},
{
"function": "file_name",
"draw_soft_divider": false
},
{
"function": "file_vcs_status",
"before": " ",
"draw_soft_divider": false
},
{
"function": "modified_indicator",
"before": " "
},
{
"exclude_modes": ["i", "R", "Rv"],
"function": "trailing_whitespace",
"display": false,
"priority": 60
},
{
"exclude_modes": ["nc"],
"function": "powerline.segments.vim.plugin.syntastic.syntastic",
"priority": 50
},
{
"exclude_modes": ["nc"],
"function": "powerline.segments.vim.plugin.tagbar.current_tag",
"draw_soft_divider": false,
"priority": 50
},
{
"type": "string",
"highlight_groups": ["background"],
"draw_soft_divider": false,
"draw_hard_divider": false,
"width": "auto"
}
],
"right": [
{
"function": "file_format",
"draw_soft_divider": false,
"exclude_modes": ["nc"],
"priority": 60
},
{
"function": "file_encoding",
"exclude_modes": ["nc"],
"priority": 60
},
{
"function": "file_type",
"exclude_modes": ["nc"],
"priority": 60
},
{
"function": "line_percent",
"priority": 50,
"width": 4,
"align": "r"
},
{
"function": "csv_col_current",
"priority": 30
},
{
"type": "string",
"name": "line_current_symbol",
"highlight_groups": ["line_current_symbol", "line_current"]
},
{
"function": "line_current",
"draw_soft_divider": false,
"width": 3,
"align": "r"
},
{
"function": "virtcol_current",
"draw_soft_divider": false,
"priority": 20,
"before": ":",
"width": 3,
"align": "l"
}
]
}
}