From 5413e8323f8713ddc07f49c555e59de4b6ce443d Mon Sep 17 00:00:00 2001 From: newbieQQ Date: Fri, 17 Nov 2023 12:44:57 +0800 Subject: [PATCH] update --- lua/plugs/lualine.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lua/plugs/lualine.lua b/lua/plugs/lualine.lua index c53a9f1..a94a0b3 100644 --- a/lua/plugs/lualine.lua +++ b/lua/plugs/lualine.lua @@ -26,10 +26,14 @@ return { sections = { lualine_a = {'mode'}, lualine_b = {'branch', 'diff', 'diagnostics'}, - lualine_c = {'filename'}, + lualine_c = {{ + 'filename', + file_status = false, + path = 1 + }}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, - lualine_z = {'location'} + lualine_z = {} }, inactive_sections = { lualine_a = {}, @@ -50,13 +54,13 @@ return { options = { -- If lualine is installed tabline will use separators configured in lualine by default. -- These options can be used to override those settings. - section_separators = {'', ''}, + section_separators = {' ', ' '}, component_separators = {'', ''}, max_bufferline_percent = 66, -- set to nil by default, and it uses vim.o.columns * 2/3 show_tabs_always = false, -- this shows tabs only when there are more than one tab or if the first tab is named show_devicons = true, -- this shows devicons in buffer section show_bufnr = false, -- this appends [bufnr] to buffer section, - show_filename_only = false, -- shows base filename only instead of relative path in filename + show_filename_only = true, -- shows base filename only instead of relative path in filename modified_icon = "+ ", -- change the default modified icon modified_italic = false, -- set to true by default; this determines whether the filename turns italic if modified show_tabs_only = false, -- this shows only tabs instead of tabs + buffers