From 1bc63a1042cb19bafd0425a47f24bde4004cf58c Mon Sep 17 00:00:00 2001 From: CatherineF-dev Date: Thu, 4 Jan 2024 08:29:27 -0500 Subject: [PATCH] doc: add shell command as lualine component --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 07ca280c6..01886b70b 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,12 @@ sections = { lualine_a = { hello } } sections = { lualine_a = {'FugitiveHead'} } ``` +##### shell command as lualine component + +```lua +sections = { lualine_a = { function() return vim.fn.system("echo Hello") end } } +``` + ##### Vim's statusline items as lualine component ```lua