|
1 |
| -*bars.g.-statuscolumn* Statuscolumn: A beginners guide. |
| 1 | +*bars.g-statuscolumn* Statuscolumn: A beginners guide. |
2 | 2 |
|
3 | 3 | ▌💡 Important
|
4 | 4 | ▌ As `statuscolumn` functions mostly the same as `statusline`, I will be
|
@@ -57,13 +57,15 @@ You can get a functional statuscolumn quite easily using these items,
|
57 | 57 |
|
58 | 58 | Let's break it down,
|
59 | 59 |
|
60 |
| -| Part | Description | |
61 |
| -| ---- | -------------------------------------------------- | |
62 |
| -| %s | The sign column. | |
63 |
| -| %C | The fold column. | |
64 |
| -| %3l | The line number. It has a width of 3 columns. | |
65 |
| -| \ | Space. | |
66 |
| -| ▍ | Border to separate the statuscolumn from the text. | |
| 60 | +╭──────┬────────────────────────────────────────────────────╮ |
| 61 | +│ Part │ Description │ |
| 62 | +├──────┼────────────────────────────────────────────────────┤ |
| 63 | +│ %s │ The sign column. │ |
| 64 | +│ %C │ The fold column. │ |
| 65 | +│ %3l │ The line number. It has a width of 3 columns. │ |
| 66 | +│ \ │ Space. │ |
| 67 | +│ ▍ │ Border to separate the statuscolumn from the text. │ |
| 68 | +╰──────┴────────────────────────────────────────────────────╯ |
67 | 69 |
|
68 | 70 | ------------------------------------------------------------------------------
|
69 | 71 | 🎨 Colors
|
@@ -210,10 +212,10 @@ things.
|
210 | 212 |
|
211 | 213 | So, we will try making some simple components such as,
|
212 | 214 |
|
213 |
| -• Line number |
214 |
| -• Fold |
215 |
| -• Signs |
216 |
| -• Separator |
| 215 | + • Line number |
| 216 | + • Fold |
| 217 | + • Signs |
| 218 | + • Separator |
217 | 219 |
|
218 | 220 | 🧩 Line number ~
|
219 | 221 |
|
@@ -282,7 +284,7 @@ Let's add this component to the configuration.
|
282 | 284 | };
|
283 | 285 | <
|
284 | 286 |
|
285 |
| -### 🧩 Folds |
| 287 | +🧩 Folds ~ |
286 | 288 |
|
287 | 289 | https://github.com/OXY2DEV/bars.nvim/blob/images/v2/wiki/bars.statuscolumn-folds.png
|
288 | 290 |
|
@@ -479,7 +481,7 @@ Let's add this component to the configuration.
|
479 | 481 | };
|
480 | 482 | <
|
481 | 483 |
|
482 |
| -### 🧩 Signs |
| 484 | +🧩 Signs ~ |
483 | 485 |
|
484 | 486 | https://github.com/OXY2DEV/bars.nvim/blob/images/v2/wiki/bars.statuscolumn-signs.png
|
485 | 487 |
|
@@ -509,7 +511,7 @@ We add it *before* the fold column.
|
509 | 511 | };
|
510 | 512 | <
|
511 | 513 |
|
512 |
| -### 🧩 Separator |
| 514 | +🧩 Separator ~ |
513 | 515 |
|
514 | 516 | Finally, we will create a Separator between different columns.
|
515 | 517 |
|
@@ -585,20 +587,20 @@ And we are done!
|
585 | 587 | You can check more complex components, per-window configuration, click
|
586 | 588 | handling etc. in the source file.
|
587 | 589 |
|
588 |
| -• https://github.com/OXY2DEV/bars.nvim/blob/main/plugin/bars.lua#L37-L100 |
589 |
| - Shows how to set up per-window statuscolumn. |
| 590 | + • https://github.com/OXY2DEV/bars.nvim/blob/main/plugin/bars.lua#L37-L100 |
| 591 | + Shows how to set up per-window statuscolumn. |
590 | 592 |
|
591 |
| -• https://github.com/OXY2DEV/bars.nvim/blob/main/lua/bars/statuscolumn.lua |
592 |
| - Shows how to manage per-window configuration, set & reset the statusline |
593 |
| - of a window and rendering statuscolumn. |
| 593 | + • https://github.com/OXY2DEV/bars.nvim/blob/main/lua/bars/statuscolumn.lua |
| 594 | + Shows how to manage per-window configuration, set & reset the statusline |
| 595 | + of a window and rendering statuscolumn. |
594 | 596 |
|
595 |
| -• https://github.com/OXY2DEV/bars.nvim/blob/main/lua/bars/components/statuscolumn.lua |
596 |
| - Shows how various components are made. |
| 597 | + • https://github.com/OXY2DEV/bars.nvim/blob/main/lua/bars/components/statuscolumn.lua |
| 598 | + Shows how various components are made. |
597 | 599 |
|
598 | 600 | --------------------
|
599 | 601 |
|
600 |
| -• https://github.com/OXY2DEV/bars.nvim/blob/main/lua/definitions/statuscolumn.lua |
601 |
| - Shows type definitions for the statuscolumn. |
| 602 | + • https://github.com/OXY2DEV/bars.nvim/blob/main/lua/definitions/statuscolumn.lua |
| 603 | + Shows type definitions for the statuscolumn. |
602 | 604 |
|
603 | 605 | --------------------
|
604 | 606 |
|
|
0 commit comments