docs: fix custom extension example
closes 453
This commit is contained in:
parent
b7cf506785
commit
cf75e1af5a
@ -637,7 +637,7 @@ extensions = {'quickfix'}
|
||||
You can define your own extensions. If you think an extension might be useful for others then please submit a pr.
|
||||
|
||||
```lua
|
||||
local my_extension = {sections = {lualine_a = 'mode'}, filetypes = {'lua'}}
|
||||
local my_extension = {sections = {lualine_a = {'mode'}}, filetypes = {'lua'}}
|
||||
require'lualine'.setup {extensions = {my_extension}}
|
||||
```
|
||||
|
||||
|
@ -666,7 +666,7 @@ Custom extensions You can define your own extensions. If
|
||||
|
||||
|
||||
>
|
||||
local my_extension = {sections = {lualine_a = 'mode'}, filetypes = {'lua'}}
|
||||
local my_extension = {sections = {lualine_a = {'mode'}}, filetypes = {'lua'}}
|
||||
require'lualine'.setup {extensions = {my_extension}}
|
||||
<
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user