fix #1309
This commit is contained in:
parent
cd5d85a11b
commit
c19398b3f6
2 changed files with 16 additions and 13 deletions
|
@ -23,7 +23,7 @@ M.ui = {
|
||||||
|
|
||||||
statusline = {
|
statusline = {
|
||||||
separator_style = "default", -- default/round/block/arrow
|
separator_style = "default", -- default/round/block/arrow
|
||||||
config = "%!v:lua.require('ui.statusline')",
|
config = "%!v:lua.require('ui.statusline').run()",
|
||||||
override = {},
|
override = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
local modules = require "ui.statusline.modules"
|
local modules = require "ui.statusline.modules"
|
||||||
|
|
||||||
local user_override = require("core.utils").load_config().ui.statusline.override
|
local user_override = require("core.utils").load_config().ui.statusline.override
|
||||||
modules = vim.tbl_deep_extend("force", modules, user_override)
|
modules = vim.tbl_deep_extend("force", modules, user_override)
|
||||||
|
|
||||||
return table.concat {
|
return {
|
||||||
|
run = function()
|
||||||
|
return table.concat {
|
||||||
modules.mode(),
|
modules.mode(),
|
||||||
modules.fileInfo(),
|
modules.fileInfo(),
|
||||||
modules.git(),
|
modules.git(),
|
||||||
|
@ -16,4 +17,6 @@ return table.concat {
|
||||||
modules.LSP_status() or "",
|
modules.LSP_status() or "",
|
||||||
modules.cwd(),
|
modules.cwd(),
|
||||||
modules.cursor_position(),
|
modules.cursor_position(),
|
||||||
|
}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue