-
First and foremost -- this is a fantastic tool, and probably my favorite free or paid AI coding assistant that I've ever used due to the flexibility. I have a question that I'm certain comes down to user error but I am trying to follow the lualine integration per the documentation and am having a bit of trouble. After saving the code in the documentation as, say,
I get the following error
I'm sure this is a matter of me not setting up the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Instead of using the opts, try config opts being a table will be resolved while the plugin spec is being determined , whereas config being a function will be called after all the plugins specs are loaded. return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("lualine").setup({
options = {
icons_enabled = true,
-- theme = 'auto',
theme = "rose-pine",
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
},
},
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = { { "filename", path = 1 } },
lualine_x = { "encoding", "fileformat", "filetype", { require("istrupin.companion_lualine") } },
lualine_y = { "progress" },
lualine_z = { "location" },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_y = {},
lualine_z = {},
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {},
})
end,
}
or You might try this lualine_x = { "encoding", "fileformat", "filetype", { function() return require("istrupin.companion_lualine") end } },
|
Beta Was this translation helpful? Give feedback.
Instead of using the opts, try config
opts being a table will be resolved while the plugin spec is being determined , whereas config being a function will be called after all the plugins specs are loaded.