This commit is contained in:
siduck 2022-07-04 11:51:43 +05:30
parent cd5d85a11b
commit c19398b3f6
2 changed files with 16 additions and 13 deletions

View File

@ -23,7 +23,7 @@ M.ui = {
statusline = {
separator_style = "default", -- default/round/block/arrow
config = "%!v:lua.require('ui.statusline')",
config = "%!v:lua.require('ui.statusline').run()",
override = {},
},

View File

@ -1,19 +1,22 @@
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)
return table.concat {
modules.mode(),
modules.fileInfo(),
modules.git(),
return {
run = function()
return table.concat {
modules.mode(),
modules.fileInfo(),
modules.git(),
"%=",
modules.LSP_progress(),
"%=",
"%=",
modules.LSP_progress(),
"%=",
modules.LSP_Diagnostics(),
modules.LSP_status() or "",
modules.cwd(),
modules.cursor_position(),
modules.LSP_Diagnostics(),
modules.LSP_status() or "",
modules.cwd(),
modules.cursor_position(),
}
end,
}