chore(nvim): update lualine config

This commit is contained in:
Rob Watson 2023-09-21 05:36:09 +02:00
parent cdf067b6a0
commit 157da03439
1 changed files with 28 additions and 4 deletions

View File

@ -23,10 +23,14 @@ require("lualine").setup({
return mode_map[mode] or mode
end,
},
"paste",
},
lualine_b = { "filename" },
lualine_c = {
{
"branch",
padding = { left = 0 },
},
"diff",
{
"diagnostics",
@ -48,8 +52,28 @@ require("lualine").setup({
},
},
},
lualine_x = { "filetype" },
lualine_y = { "progress" },
lualine_z = { "location" },
lualine_x = {
{
function()
local go_status_line = vim.api.nvim_call_function("go#statusline#Show", {})
if go_status_line ~= "" then
return go_status_line
end
return vim.bo.filetype
end,
padding = { left = 1, right = 0 },
},
},
lualine_y = { { "progress", padding = { left = 1, right = 0 } } },
lualine_z = { { "location", padding = { left = 1, right = 0 } } },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { { "location", padding = { right = 0 } } },
lualine_y = {},
lualine_z = {},
},
})