2022-07-04 03:39:38 +02:00
|
|
|
local modules = require "ui.statusline.modules"
|
|
|
|
local user_override = require("core.utils").load_config().ui.statusline.override
|
|
|
|
modules = vim.tbl_deep_extend("force", modules, user_override)
|
|
|
|
|
2022-07-04 08:21:43 +02:00
|
|
|
return {
|
|
|
|
run = function()
|
|
|
|
return table.concat {
|
|
|
|
modules.mode(),
|
|
|
|
modules.fileInfo(),
|
|
|
|
modules.git(),
|
2022-07-04 03:39:38 +02:00
|
|
|
|
2022-07-04 08:21:43 +02:00
|
|
|
"%=",
|
|
|
|
modules.LSP_progress(),
|
|
|
|
"%=",
|
2022-07-04 03:39:38 +02:00
|
|
|
|
2022-07-04 08:21:43 +02:00
|
|
|
modules.LSP_Diagnostics(),
|
|
|
|
modules.LSP_status() or "",
|
|
|
|
modules.cwd(),
|
|
|
|
modules.cursor_position(),
|
|
|
|
}
|
|
|
|
end,
|
2022-07-04 03:39:38 +02:00
|
|
|
}
|