From e3df1c2a03f7862b55c0db0fc85132f255dadfaa Mon Sep 17 00:00:00 2001 From: leafee98 Date: Thu, 14 Dec 2023 20:42:44 +0800 Subject: [PATCH] modify configuration for lualine, show more info --- lua/plugins/10-editor.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lua/plugins/10-editor.lua b/lua/plugins/10-editor.lua index a6e0395..83b4fe5 100644 --- a/lua/plugins/10-editor.lua +++ b/lua/plugins/10-editor.lua @@ -66,7 +66,24 @@ return { }, main = "lualine", event = "VeryLazy", - opts = { }, + opts = { + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + } + }, init = function(_) vim.o.mousemoveevent = true end,