docs: fix custom extension example

closes 453
This commit is contained in:
shadmansaleh 2021-11-26 09:59:20 +06:00
parent b7cf506785
commit cf75e1af5a
2 changed files with 2 additions and 2 deletions

View File

@ -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. You can define your own extensions. If you think an extension might be useful for others then please submit a pr.
```lua ```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}} require'lualine'.setup {extensions = {my_extension}}
``` ```

View File

@ -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}} require'lualine'.setup {extensions = {my_extension}}
< <