diff --git a/README.md b/README.md index 36e031b..86f481f 100644 --- a/README.md +++ b/README.md @@ -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}} ``` diff --git a/doc/lualine.txt b/doc/lualine.txt index 5cb8436..04a08a7 100644 --- a/doc/lualine.txt +++ b/doc/lualine.txt @@ -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}} <