Ryan Rueger

ryan@rueg.re / picture / key / home
aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5bd82f70b4be2a2b0ed7b6b9427fceb3df02f74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
## Ryan's Statusline: Statusryne

A simple satusline and tabline plugin for vim.

#### Satusline

![Preview of long normal mode](screenshots/statusryne.png)
![Preview of short normal mode git](screenshots/statusryne-git.png)
![Preview of short normal mode](screenshots/statusryne-short.png)
![Preview of short insert mode](screenshots/statusryne-insert.png)
![Preview of short visual mode](screenshots/statusryne-visual.png)

Left side: Mode, filename, git branch, git additions and deletions.

Right side: Word count, character count, file size (as reported by `du`),
spelling language, filetype, percentage through file in lines, line count/ total
line count, cursor column line.

Features:

* *(Filename set dynamically)* Depending on the size available in the terminal,
  first the full path of the file is displayed, else a shortened path is
  displayed, else only the basename is shown.

* *(Colour indicator)* Automatic mode dependent colour switching.

* *(Git information)* Display git branch with insertions and deletions

##### Statusline Options

```
let g:statusryne_word_char_count = '0'
let g:statusryne_change_colors = '1'
```

#### Tabline

![Preview of tabline](screenshots/statusryne-tabline.png)
![Preview of tabline](screenshots/statusryne-tabline-widths.png)
![Preview of tabline](screenshots/statusryne-tabline-multiple-buffers.png)

Features:

* *(Equal spacing)* Tab widths are set to equal lengths whenever a new buffer is
  opened.

* *(Filetype indicators)* When certain buffers are opened, an additional label
  is added to the buffer name:

  * `[H]` For help buffers
  * `[Q]` For quickfix windows
  * `[New]` For new buffers with no name yet

* *(Display all open buffers in window)* If a window has two open (visible)
  buffers in it, for example in a vertical split, both buffer names will be
  displayed. If a tab is open on two open buffers, the active buffer will be
  highlighted in a darker colour.

##### Tabline Options

```
let g:statusryne_tabline_equal_width = '0'
```

#### Colours

```
" Focused window
let g:statusryne_colorfg_statusline='008'
let g:statusryne_colorbg_statusline='007'

" Non-focused window ('non-current' in vim nomenclature)
let g:statusryne_colorfg_statusline_nc='008'
let g:statusryne_colorbg_statusline_nc='007'

" Colors of additional statistics/filetype section
let g:statusryne_colorfg_extra='015'
let g:statusryne_colorbg_extra='014'
let g:statusryne_colorfg_mode='015'
let g:statusryne_colorbg_mode='008'

" Background colors for different modes
let g:statusryne_colorbg_mode_normal='008'
let g:statusryne_colorbg_mode_visual='005'
let g:statusryne_colorbg_mode_insert='004'
let g:statusryne_colorbg_mode_replace='001'
let g:statusryne_colorbg_mode_other='010'

" Tabline colors
" Selected tab
let g:statusryne_colorfg_tablinesel='007'
let g:statusryne_colorbg_tablinesel='008'
" Non-Selected tab
let g:statusryne_colorfg_tabline='008'
let g:statusryne_colorbg_tabline='007'
```

I am using Ethan Schoonover's light solarized colour scheme with a slight
modification of the base colour. This is done by setting the colours in the
terminal emulator (`alacritty` in my case) explicitly, and then using relative
labels in the plugin. Below are explicit RGB values in the `alacritty`
configuration format

```
colors:
  primary:
    background: '0xf2f1f0' # Original: 0xfdf6e3
    foreground: '0x657b83'

  normal:
    black:   '0x073642'
    red:     '0xd54e53'
    green:   '0x859900'
    yellow:  '0xb58900'
    blue:    '0x268bd2'
    magenta: '0xd33682'
    cyan:    '0x2aa198'
    white:   '0xe3e3e3' # Original: 0xeee8d5

  bright:
    black:   '0x002b36'
    red:     '0xdc322f'
    green:   '0x586e75'
    yellow:  '0x657b83'
    blue:    '0x839496'
    magenta: '0x6c71c4'
    cyan:    '0x93a1a1'
    white:   '0xf2f1f0' # Original: 0xfdf6e3
```

#### Bugs