remove time from status line
This commit is contained in:
@@ -54,26 +54,26 @@ local filetype = {
|
|||||||
"filetype",
|
"filetype",
|
||||||
}
|
}
|
||||||
|
|
||||||
local timer = vim.loop.new_timer()
|
-- local timer = vim.loop.new_timer()
|
||||||
timer:start(
|
-- timer:start(
|
||||||
0,
|
-- 0,
|
||||||
1000,
|
-- 1000,
|
||||||
vim.schedule_wrap(function()
|
-- vim.schedule_wrap(function()
|
||||||
vim.g.lualine_time_module = os.date("%H:%M", os.time())
|
-- vim.g.lualine_time_module = os.date("%H:%M", os.time())
|
||||||
end)
|
-- end)
|
||||||
)
|
-- )
|
||||||
local time = {
|
-- local time = {
|
||||||
function()
|
-- function()
|
||||||
return vim.g.lualine_time_module
|
-- return vim.g.lualine_time_module
|
||||||
end,
|
-- end,
|
||||||
cond = function()
|
-- cond = function()
|
||||||
if vim.g.lualine_time_module then
|
-- if vim.g.lualine_time_module then
|
||||||
return true
|
-- return true
|
||||||
end
|
-- end
|
||||||
|
|
||||||
return false
|
-- return false
|
||||||
end,
|
-- end,
|
||||||
}
|
-- }
|
||||||
|
|
||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
@@ -85,7 +85,7 @@ lualine.setup({
|
|||||||
lualine_a = { mode },
|
lualine_a = { mode },
|
||||||
lualine_b = { branch },
|
lualine_b = { branch },
|
||||||
lualine_c = { diagnostics, filename, fileformat },
|
lualine_c = { diagnostics, filename, fileformat },
|
||||||
lualine_x = { tabstop, location, encoding, filetype, time },
|
lualine_x = { tabstop, location, encoding, filetype },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user