2022-07-03 21:39:38 -04: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 02:21:43 -04:00
|
|
|
return {
|
|
|
|
run = function()
|
|
|
|
return table.concat {
|
|
|
|
modules.mode(),
|
|
|
|
modules.fileInfo(),
|
|
|
|
modules.git(),
|
2022-07-03 21:39:38 -04:00
|
|
|
|
2022-07-04 02:21:43 -04:00
|
|
|
"%=",
|
|
|
|
modules.LSP_progress(),
|
|
|
|
"%=",
|
2022-07-03 21:39:38 -04:00
|
|
|
|
2022-07-04 02:21:43 -04:00
|
|
|
modules.LSP_Diagnostics(),
|
|
|
|
modules.LSP_status() or "",
|
|
|
|
modules.cwd(),
|
|
|
|
modules.cursor_position(),
|
|
|
|
}
|
|
|
|
end,
|
2022-07-03 21:39:38 -04:00
|
|
|
}
|