From 15072e4a1511edae838afb843516fc1aaf8ad651 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 2 Apr 2023 07:58:52 +0200 Subject: [PATCH] poweline_gitstatus added --- README.md | 6 +- powerline_gitstatus/colorschemes/default.json | 18 +++ powerline_gitstatus/config.json | 7 + powerline_gitstatus/themes/shell/default.json | 47 +++++++ powerline_gitstatus/themes/vim/default.json | 128 ++++++++++++++++++ 5 files changed, 205 insertions(+), 1 deletion(-) create mode 100644 powerline_gitstatus/colorschemes/default.json create mode 100644 powerline_gitstatus/config.json create mode 100644 powerline_gitstatus/themes/shell/default.json create mode 100644 powerline_gitstatus/themes/vim/default.json diff --git a/README.md b/README.md index 9ba5e5a..0c7f642 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # config_files -Config File Collection \ No newline at end of file +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 diff --git a/powerline_gitstatus/colorschemes/default.json b/powerline_gitstatus/colorschemes/default.json new file mode 100644 index 0000000..e688837 --- /dev/null +++ b/powerline_gitstatus/colorschemes/default.json @@ -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": [] } + } +} diff --git a/powerline_gitstatus/config.json b/powerline_gitstatus/config.json new file mode 100644 index 0000000..6440146 --- /dev/null +++ b/powerline_gitstatus/config.json @@ -0,0 +1,7 @@ +{ + "ext": { + "shell": { + "theme": "default" + } + } +} diff --git a/powerline_gitstatus/themes/shell/default.json b/powerline_gitstatus/themes/shell/default.json new file mode 100644 index 0000000..c631cb7 --- /dev/null +++ b/powerline_gitstatus/themes/shell/default.json @@ -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 + } + ] + } +} diff --git a/powerline_gitstatus/themes/vim/default.json b/powerline_gitstatus/themes/vim/default.json new file mode 100644 index 0000000..c6480ab --- /dev/null +++ b/powerline_gitstatus/themes/vim/default.json @@ -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" + } + ] + } +}