Replies: 1 comment
-
This is what I came up with: set(
{ "n", "i", "v" },
"<C-l>",
function()
local plugin = require "lualine"
local config = plugin.get_config()
for _, section in pairs(config.sections) do
for _, component in ipairs(section) do
if type(component) == "table" and component[1] == "filename" then
if component.path == 0 then
component.path = 1
else
component.path = 0
end
end
end
end
plugin.setup(config)
end
) I'm not sure if it is safe to call the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to change the
path
setting of thefilename
component when I hit a keymap. What would be the best way to do it?Beta Was this translation helpful? Give feedback.
All reactions