From 7b608cb5731087b157bd509103b1d82d8984cba4 Mon Sep 17 00:00:00 2001
From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com>
Date: Tue, 16 Nov 2021 08:56:20 +0600
Subject: [PATCH] doc: remove folds from README
people seem to have trouble finding documented stuff
because of them :/
---
README.md | 43 +++++++++----------------------------
doc/lualine.txt | 56 ++++++++++++++++++++++++++++---------------------
2 files changed, 42 insertions(+), 57 deletions(-)
diff --git a/README.md b/README.md
index 983996d..ede0dce 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ Lualine has sections as shown below.
Each sections holds it's components e.g. current vim's mode.
-Configuring lualine in init.vim
+#### Configuring lualine in init.vim
All the examples below are in lua. You can use the same examples
in `.vim` file by wrapping them in lua heredoc like this:
@@ -111,9 +111,8 @@ END
checkout `:help lua-heredoc`.
-
-Default config
+#### Default config
```lua
require'lualine'.setup {
@@ -147,7 +146,6 @@ require'lualine'.setup {
}
```
-
If you want to get your current lualine config. you can
do so with
@@ -177,8 +175,7 @@ All available themes are listed in [THEMES.md](./THEMES.md)
Please create a pr if you managed to port a popular theme before me, [here is how to do it](./CONTRIBUTING.md).
-
-Customizing themes
+#### Customizing themes
```lua
local custom_gruvbox = require'lualine.themes.gruvbox'
@@ -192,7 +189,6 @@ require'lualine'.setup{
Theme structure is available [here](./CONTRIBUTING.md#adding-a-theme)
-
---
@@ -213,13 +209,12 @@ options = {
Here left means it'll be used for left sections (a, b, c) and right means
it'll be used for right sections (x, y, z).
-Disabling separators
+#### Disabling separators
```lua
options = {section_separators = '', component_separators = ''}
```
-
---
@@ -229,8 +224,7 @@ options = {section_separators = '', component_separators = ''}
sections = {lualine_a = {'mode'}}
```
-
-Available components
+#### Available components
* `branch` (git branch)
* `buffers` (shows currently available buffers)
@@ -247,7 +241,6 @@ sections = {lualine_a = {'mode'}}
* `progress` (%progress in file)
* `tabs` (shows currently available tabs)
-
#### Custom components
@@ -266,7 +259,7 @@ sections = {lualine_a = {hello}}
sections = {lualine_a = {'FugitiveHead'}}
```
-#### Vim's statusline items as lualine component
+##### Vim's statusline items as lualine component
```lua
sections = {lualine_c = {'%=', '%t%m', '%3p'}}
@@ -322,9 +315,6 @@ shown . On the other hand branch will be formatted with global formatter
#### Available options
-
-Global options
-
#### Global options
These are `options` that are used in options table.
@@ -350,12 +340,7 @@ options = {
}
```
-
-
-
-General component options
-
-#### General options
+#### General component options
These are options that control behavior at component level
and are available for all components.
@@ -404,10 +389,8 @@ sections = {
}
```
-
-
-Component specific options
+#### Component specific options
These are options that are available on specific components.
For example you have option on `diagnostics` component to
@@ -568,7 +551,6 @@ sections = {
}
```
-
---
@@ -637,8 +619,7 @@ You can load extensions with:
extensions = {'quickfix'}
```
-
-Available extensions
+#### Available extensions
* chadtree
* fern
@@ -649,10 +630,8 @@ extensions = {'quickfix'}
* quickfix
* toggleterm
-
-
-Custom extensions
+#### Custom extensions
You can define your own extensions. If you think an extension might be useful for others then please submit a pr.
@@ -661,8 +640,6 @@ local my_extension = {sections = {lualine_a = 'mode'}, filetypes = {'lua'}}
require'lualine'.setup {extensions = {my_extension}}
```
-
-
---
### Disabling lualine
diff --git a/doc/lualine.txt b/doc/lualine.txt
index fa5c491..106fdf7 100644
--- a/doc/lualine.txt
+++ b/doc/lualine.txt
@@ -82,10 +82,13 @@ Lualine has sections as shown below.
Each sections holds it’s components e.g. current vim’s mode.
-Configuring lualine in init.vim
+ *lualine-Configuring-lualine-in-init.vim*
+
+Configuring lualine in init.vim All the examples below are in lua. You
+ can use the same examples in `.vim` file
+ by wrapping them in lua heredoc like
+ this:
-All the examples below are in lua. You can use the same examples in `.vim` file
-by wrapping them in lua heredoc like this:
>
lua << END
@@ -96,7 +99,7 @@ by wrapping them in lua heredoc like this:
checkout `:help lua-heredoc`.
-Default config
+ *lualine-Default-config*
>
require'lualine'.setup {
@@ -131,7 +134,9 @@ Default config
<
-If you want to get your current lualine config. you can do so with
+Default config If you want to get your current lualine
+ config. you can do so with
+
>
require'lualine'.get_config()
@@ -161,7 +166,7 @@ All available themes are listed in THEMES.md <./THEMES.md>
Please create a pr if you managed to port a popular theme before me, here is
how to do it <./CONTRIBUTING.md>.
-Customizing themes
+ *lualine-Customizing-themes*
>
local custom_gruvbox = require'lualine.themes.gruvbox'
@@ -174,7 +179,9 @@ Customizing themes
<
-Theme structure is available here <./CONTRIBUTING.md#adding-a-theme>
+Customizing themes Theme structure is available here
+ <./CONTRIBUTING.md#adding-a-theme>
+
------------------------------------------------------------------------------
@@ -198,7 +205,7 @@ Lualine defines two kinds of separators:
Here left means it’ll be used for left sections (a, b, c) and right means
it’ll be used for right sections (x, y, z).
-Disabling separators
+ *lualine-Disabling-separators*
>
options = {section_separators = '', component_separators = ''}
@@ -214,7 +221,7 @@ CHANGING COMPONENTS IN LUALINE SECTIONS ~
<
-Available components ~
+ *lualine-Available-components*
- `branch` (git branch)
@@ -252,7 +259,7 @@ VIM FUNCTIONS AS LUALINE COMPONENT
<
- *lualine-Vim’s-statusline-items-as-lualine-component*
+VIM’S STATUSLINE ITEMS AS LUALINE COMPONENT
>
sections = {lualine_c = {'%=', '%t%m', '%3p'}}
@@ -312,8 +319,6 @@ shown. On the other hand branch will be formatted with global formatter
*lualine-Available-options*
-Global options ~
-
*lualine-Global-options*
Global options These are `options` that are used in
@@ -342,11 +347,9 @@ in component.
<
-General component options ~
+ *lualine-General-component-options*
- *lualine-General-options*
-
-General options These are options that control behavior
+General component options These are options that control behavior
at component level and are available for
all components.
@@ -396,11 +399,14 @@ General options These are options that control behavior
<
-Component specific options ~
+ *lualine-Component-specific-options*
+
+Component specific options These are options that are available on
+ specific components. For example you
+ have option on `diagnostics` component
+ to specify what your diagnostic sources
+ will be.
-These are options that are available on specific components. For example you
-have option on `diagnostics` component to specify what your diagnostic sources
-will be.
*lualine-buffers-component-options*
@@ -639,7 +645,7 @@ extensions with:
<
-Available extensions ~
+ *lualine-Available-extensions*
- chadtree
@@ -652,10 +658,12 @@ Available extensions ~
- toggleterm
-Custom extensions ~
+ *lualine-Custom-extensions*
+
+Custom extensions You can define your own extensions. If
+ you think an extension might be useful
+ for others then please submit a pr.
-You can define your own extensions. If you think an extension might be useful
-for others then please submit a pr.
>
local my_extension = {sections = {lualine_a = 'mode'}, filetypes = {'lua'}}