nvchad/lua/ui/statusline/init.lua

23 lines
544 B
Lua
Raw Normal View History

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-04 02:21:43 -04:00
"%=",
modules.LSP_progress(),
"%=",
2022-07-04 02:21:43 -04:00
modules.LSP_Diagnostics(),
modules.LSP_status() or "",
modules.cwd(),
modules.cursor_position(),
}
end,
}