-
Hi, I have already called |
Beta Was this translation helpful? Give feedback.
Answered by
yutkat
Apr 16, 2023
Replies: 1 comment 1 reply
-
Yes. It is no problem to call .setup more than once. vim.keymap.set({ "n" }, "!", function()
local lualine_require = require("lualine_require")
local modules = lualine_require.lazy_require({ config_module = "lualine.config" })
local current_config = modules.config_module.get_config()
-- Edit here
current_config.sections.lualine_a = { "hostname" }
require("lualine").setup(current_config)
end, { noremap = true, expr = true }) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
twiddli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. It is no problem to call .setup more than once.