chore: fix typos
This commit is contained in:
parent
a643a24d94
commit
9eda025073
12
README.md
12
README.md
|
@ -234,7 +234,7 @@ You can use any valid lua expression as a component including
|
||||||
* global variables
|
* global variables
|
||||||
* require statements
|
* require statements
|
||||||
```lua
|
```lua
|
||||||
sections = {lualine_c = {"os.data('%a')", 'data', "require'lsp-status'.status()"}}
|
sections = {lualine_c = {"os.date('%a')", 'data', "require'lsp-status'.status()"}}
|
||||||
```
|
```
|
||||||
`data` is a global variable in this example.
|
`data` is a global variable in this example.
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ Global option used locally overwrites the global, for example:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = 1, -- displays icons in alongside component
|
icons_enabled = true, -- displays icons in alongside component
|
||||||
padding = 1, -- adds padding to the left and right of components
|
padding = 1, -- adds padding to the left and right of components
|
||||||
left_padding = 1, -- adds padding to the left of components
|
left_padding = 1, -- adds padding to the left of components
|
||||||
right_padding =1, -- adds padding to the right of components
|
right_padding =1, -- adds padding to the right of components
|
||||||
|
@ -283,7 +283,7 @@ sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
'mode',
|
'mode',
|
||||||
icon = nil, -- displays icon in front of the component
|
icon = nil, -- displays icon in front of the component
|
||||||
separator = nil, -- Determines what separator to use for the component.
|
separator = nil, -- Determines what separator to use for the component.
|
||||||
-- when a string is given it's treated as component_separator.
|
-- when a string is given it's treated as component_separator.
|
||||||
-- When a table is given it's treated as section_separator.
|
-- When a table is given it's treated as section_separator.
|
||||||
|
@ -347,8 +347,8 @@ sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
'filename',
|
'filename',
|
||||||
file_status = true, -- displays file status (readonly status, modified status)
|
file_status = true, -- displays file status (readonly status, modified status)
|
||||||
path = 0, -- 0 = just filename, 1 = relative path, 2 = absolute path
|
path = 0, -- 0 = just filename, 1 = relative path, 2 = absolute path
|
||||||
shorting_target = 40 -- Shortens path to leave 40 space in the window
|
shorting_target = 40 -- Shortens path to leave 40 space in the window
|
||||||
-- for other components. Terrible name any suggestions?
|
-- for other components. Terrible name any suggestions?
|
||||||
}
|
}
|
||||||
|
@ -385,7 +385,7 @@ sections = {
|
||||||
symbols = {added = '+', modified = '~', removed = '-'} -- changes diff symbols
|
symbols = {added = '+', modified = '~', removed = '-'} -- changes diff symbols
|
||||||
source = nil, -- A function that works as a data source for diff.
|
source = nil, -- A function that works as a data source for diff.
|
||||||
-- it must return a table like
|
-- it must return a table like
|
||||||
{added = add_count, modified = modified_count, removed = removed_count }
|
-- {added = add_count, modified = modified_count, removed = removed_count }
|
||||||
-- Or nil on failure. Count <= 0 won't be displayed.
|
-- Or nil on failure. Count <= 0 won't be displayed.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ All available themes are only best effort ports by myself/ other users. If you f
|
||||||
### auto
|
### auto
|
||||||
auto is a special theme. It will automaticaly load theme for your colorscheme.
|
auto is a special theme. It will automaticaly load theme for your colorscheme.
|
||||||
If there's no theme available for your colorscheme then
|
If there's no theme available for your colorscheme then
|
||||||
it'll it's best to generate one.
|
it'll try it's best to generate one.
|
||||||
|
|
||||||
### 16color
|
### 16color
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -169,7 +169,7 @@ You can use any valid lua expression as a component including
|
||||||
* global variables
|
* global variables
|
||||||
* require statements
|
* require statements
|
||||||
>
|
>
|
||||||
sections = {lualine_c = {"os.data('%a')", 'data', require'lsp-status'.status}}
|
sections = {lualine_c = {"os.date('%a')", 'data', require'lsp-status'.status}}
|
||||||
|
|
||||||
`data` is a global variable in this example.
|
`data` is a global variable in this example.
|
||||||
|
|
||||||
|
@ -199,12 +199,12 @@ Global options~
|
||||||
>
|
>
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = 1, -- displays icons in alongside component
|
icons_enabled = 1, -- displays icons in alongside component
|
||||||
padding = 1, -- adds padding to the left and right of components
|
padding = 1, -- adds padding to the left and right of components
|
||||||
left_padding = 1, -- adds padding to the left of components
|
left_padding = 1, -- adds padding to the left of components
|
||||||
right_padding =1, -- adds padding to the right of components
|
right_padding =1, -- adds padding to the right of components
|
||||||
upper = false, -- displays components in uppercase
|
upper = false, -- displays components in uppercase
|
||||||
lower = false, -- displays components in lowercase
|
lower = false, -- displays components in lowercase
|
||||||
format = nil -- format function, formats component's output
|
format = nil -- format function, formats component's output
|
||||||
}
|
}
|
||||||
|
|
||||||
Local options~
|
Local options~
|
||||||
|
@ -273,8 +273,8 @@ Component specific local options~
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
'filename',
|
'filename',
|
||||||
file_status = true, -- displays file status (readonly status, modified status)
|
file_status = true, -- displays file status (readonly status, modified status)
|
||||||
path = 0 -- 0 = just filename, 1 = relative path, 2 = absolute path
|
path = 0 -- 0 = just filename, 1 = relative path, 2 = absolute path
|
||||||
shorting_target = 40 -- Shortens path to leave 40 space in the window
|
shorting_target = 40 -- Shortens path to leave 40 space in the window
|
||||||
-- for other components. Terrible name any suggestions?
|
-- for other components. Terrible name any suggestions?
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ Component specific local options~
|
||||||
symbols = {added = '+', modified = '~', removed = '-'} -- changes diff symbols
|
symbols = {added = '+', modified = '~', removed = '-'} -- changes diff symbols
|
||||||
source = nil, -- A function that works as a data source for diff.
|
source = nil, -- A function that works as a data source for diff.
|
||||||
-- it must return a table like
|
-- it must return a table like
|
||||||
{added = add_count, modified = modified_count, removed = removed_count }
|
-- {added = add_count, modified = modified_count, removed = removed_count }
|
||||||
-- Or nil on failure. Count <= 0 won't be displayed.
|
-- Or nil on failure. Count <= 0 won't be displayed.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue