From 4dde0ad1c45ca1c32918c70be66aacf05b403e57 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 19 Sep 2023 11:27:24 +0200 Subject: [PATCH] feat(lualine): remove git branch from _b --- lua/plugins/UI.lua | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/lua/plugins/UI.lua b/lua/plugins/UI.lua index 308dff5..a02c4b1 100644 --- a/lua/plugins/UI.lua +++ b/lua/plugins/UI.lua @@ -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, }, }