From ab5acf4263df209cf32322a29249e7db970f6783 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 29 Jan 2025 09:27:51 +0100 Subject: [PATCH] nvim/lua/user/plugins/editor.lua: fixing status column some more. --- nvim/lua/user/plugins/editor.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nvim/lua/user/plugins/editor.lua b/nvim/lua/user/plugins/editor.lua index 5ec59c8..1267f70 100644 --- a/nvim/lua/user/plugins/editor.lua +++ b/nvim/lua/user/plugins/editor.lua @@ -86,6 +86,7 @@ return { namespace = { "gitsigns" }, maxwidth = 1, colwidth = 1, + foldclosed = true, } }, { @@ -94,18 +95,23 @@ return { name = { ".*" }, namespace = { ".*" }, maxwidth = 1, + foldclosed = true, }, }, { - text = { builtin.lnumfunc, " " }, + text = { " ", builtin.lnumfunc, " " }, click = "v:lua.ScLa", }, - { text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" }, + { + text = { builtin.foldfunc, " " }, + condition = { true, function (args) return args.fold.width > 0 end }, + click = "v:lua.ScFa" + }, { text = { function(args) local pos = vim.api.nvim_win_get_cursor(args.win) - return (args.lnum == pos[1] and "%#SignColumnSep#%=" or "")..icons.signcolum.separator + return (args.lnum == pos[1] and "%#SignColumnSep#" or "")..icons.signcolum.separator end, }, },