From f9540fb94f71cce3e497f891bb858b35be866203 Mon Sep 17 00:00:00 2001 From: "kacaii.dev" Date: Sat, 8 Aug 2026 17:51:08 -0300 Subject: [PATCH] nvim/lualine: add lsp_status and searchcount, and change diff icons --- .config/nvim/plugin/lualine.lua | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.config/nvim/plugin/lualine.lua b/.config/nvim/plugin/lualine.lua index ddcedd2..7a935f3 100644 --- a/.config/nvim/plugin/lualine.lua +++ b/.config/nvim/plugin/lualine.lua @@ -15,7 +15,16 @@ local ruler = function() return vim.o.rulerformat end -local config = { +local diff = { + "diff", + symbols = { + added = " ", + modified = " ", + removed = " ", + }, +} + +lualine.setup({ options = { component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, @@ -24,16 +33,11 @@ local config = { sections = { lualine_a = { "mode" }, lualine_b = { "branch" }, - lualine_c = { "filename", "diff", "diagnostics" }, - lualine_x = {}, - lualine_y = {}, + lualine_c = { "filename", diff, "diagnostics" }, + lualine_x = { { "searchcount", color = { fg = colors.orange } } }, + lualine_y = { "lsp_status" }, lualine_z = { - { - ruler, - color = { fg = colors.overlay1, bg = colors.mantle }, - }, + { ruler, color = { fg = colors.overlay1, bg = colors.mantle } }, }, }, -} - -lualine.setup(config) +}) -- 2.51.2