From cf75e1af5a1cafaa0866cf8a11632f48b430115d Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 26 Nov 2021 09:59:20 +0600 Subject: [PATCH] docs: fix custom extension example closes 453 --- README.md | 2 +- doc/lualine.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}} <