nvim lualine work

This commit is contained in:
Henrik Bakken
2025-03-28 22:20:19 +01:00
parent c332da0352
commit 7d0e196621
+23 -23
View File
@@ -485,41 +485,41 @@ local function makespec_lualine()
dependencies = { "echasnovski/mini.icons", "folke/noice.nvim" }, dependencies = { "echasnovski/mini.icons", "folke/noice.nvim" },
opts = { opts = {
options = { theme = "auto", globalstatus = false }, options = { theme = "auto", globalstatus = false },
extensions = { "fugitive" }, extensions = { "fugitive", "neo-tree", "lazy" },
sections = { sections = {
lualine_a = { "mode" },
lualine_b = { "branch" },
lualine_c = { lualine_c = {
{ { "filename", file_status = true, path = 1, shorting_target = 0 },
"filename", { "filetype", icon_only = true, separator = " ", padding = { left = 1, right = 0 } },
file_status = true,
path = 1,
shorting_target = 0,
},
{ "diff", colored = true },
}, },
lualine_x = { lualine_x = {
{ "require('noice').api.status.command.get()" }, {
{ "require('noice').api.status.mode.get()" }, function() require("noice").api.status.message.get_hl() end,
cond = function() require("noice").api.status.message.has() end,
},
{
function() require("noice").api.status.command.get() end,
cond = function() require("noice").api.status.command.has() end,
color = { fg = "#ff9e64" },
},
{
function() require("noice").api.status.mode.get() end,
cond = function() require("noice").api.status.mode.has() end,
color = { fg = "#ff9e64" },
},
}, },
lualine_y = { "filetype", "progress" }, lualine_y = { "progress", "location" },
lualine_z = { "location" }, lualine_z = { { function() return "" .. os.date("%R") end } },
}, },
inactive_sections = { inactive_sections = {
lualine_a = {}, lualine_a = {},
lualine_b = {}, lualine_b = {},
lualine_c = { lualine_c = {
{ { "filename", file_status = true, path = 1, shorting_target = 0 },
"filename", { "filetype", icon_only = true, separator = " ", padding = { left = 1, right = 0 } },
file_status = true,
path = 1,
shorting_target = 0,
},
{ "diff", colored = true },
}, },
lualine_x = {}, lualine_x = {},
lualine_y = { "filetype", "progress" }, lualine_y = { "progress", "location" },
lualine_z = { "location" }, lualine_z = {},
}, },
tabline = { tabline = {
lualine_a = { lualine_a = {