Ryan Rueger

ryan@rueg.re / picture / key / home
aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 2170c53ab97d330315035c8ac81be6083c9dd217 (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
## 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

#### 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.

#### Colours

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
```