Skip to content

Commit 6185e4e

Browse files
committed
docs: update simple statusline snippet (See #147)
1 parent d1877fd commit 6185e4e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,12 @@ require("lualine").setup({
10211021
sections = {
10221022
lualine_b = {
10231023
{
1024-
require("grapple").name_or_index,
1025-
cond = require("grapple").exists
1024+
function()
1025+
return require("grapple").name_or_index()
1026+
end,
1027+
cond = function()
1028+
return package.loaded["grapple"] and require("grapple").exists()
1029+
end
10261030
}
10271031
}
10281032
}

0 commit comments

Comments
 (0)