diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-08 11:03:36 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-08 11:03:36 -0400 |
| commit | 33724076b23aefea4a3af26847cb3659bd523452 (patch) | |
| tree | 04342460e9ae4d0a88eb6b4c20c5102d345746e5 /pkgs/custom-neovim/config/lua/statusline.lua | |
| parent | 3b26572913f42c540691ee385bb255b52228e448 (diff) | |
neovim: change some plugins and fix sessions
Diffstat (limited to 'pkgs/custom-neovim/config/lua/statusline.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/statusline.lua | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/custom-neovim/config/lua/statusline.lua b/pkgs/custom-neovim/config/lua/statusline.lua index 5476841..d83231a 100644 --- a/pkgs/custom-neovim/config/lua/statusline.lua +++ b/pkgs/custom-neovim/config/lua/statusline.lua @@ -59,6 +59,10 @@ statusline_components.micro_spacer = function() return " " end +statusline_components.small_spacer = function() + return " " +end + statusline_components.spacer = function() return '%=' end @@ -152,7 +156,7 @@ end statusline_components.git_branch = function() if vim.g.gitsigns_head then - return string.format(' %s ', vim.g.gitsigns_head) + return string.format(' %s', vim.g.gitsigns_head) else return '' -- Return an empty string or some default value if the branch name is not available end @@ -217,7 +221,7 @@ statusline_components.working_directory = function() text = ".../" .. parts[#parts] end end - return string.format(' %s ', text) + return string.format('%s', text) end Statusline_component = function(name) @@ -232,15 +236,21 @@ local statusline = { get_component("micro_spacer"), get_component("mode"), + get_component("micro_spacer"), get_component("working_directory"), + get_component("micro_spacer"), get_component("git_branch"), + get_component("micro_spacer"), get_component("git_status"), + get_component("micro_spacer"), get_component("diagnostic_status"), get_component("spacer"), - ' %{&filetype} ', -- filetype - '%2p%% ', -- progress % + '%{&filetype}', -- filetype + get_component("micro_spacer"), + '%2p%%', -- progress % + get_component("micro_spacer"), get_component("position"), } |
