feat(lualine): remove git branch from _b

This commit is contained in:
Michel 2023-09-19 11:27:24 +02:00
parent fe37313c62
commit 4dde0ad1c4
1 changed files with 35 additions and 2 deletions

View File

@ -1,10 +1,43 @@
return {
{
"echasnovski/mini.indentscope",
opts = function(_, opts)
opts.symbol = ""
end,
},
{
"nvim-lualine/lualine.nvim",
opts = function(_, opts)
local icons = require("lazyvim.config").icons
opts.options.theme = "codedark"
opts.sections.lualine_y = { "fileformat", "encoding" }
opts.sections.lualine_z = { "progress", "location" }
opts.sections = {
lualine_a = { "mode" },
lualine_b = {
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ "filename", path = 1, symbols = { modified = "", readonly = "", unnamed = "" } },
},
lualine_c = {
{
"diagnostics",
symbols = {
error = icons.diagnostics.Error,
warn = icons.diagnostics.Warn,
info = icons.diagnostics.Info,
hint = icons.diagnostics.Hint,
},
},
-- stylua: ignore
{
function() return require("nvim-navic").get_location() end,
cond = function() return package.loaded["nvim-navic"] and require("nvim-navic").is_available() end,
},
},
lualine_x = opts.sections.lualine_x,
lualine_y = { "fileformat", "encoding" },
lualine_z = { "progress", "location" },
}
end,
},
}