From a14642c07f2d6ed8b0fbdfd7dea4a52358ae6275 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 7 Sep 2024 16:30:29 +0200 Subject: [PATCH] nvim: editor: restructure statuscolumn --- nvim/lua/user/plugins/editor.lua | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/nvim/lua/user/plugins/editor.lua b/nvim/lua/user/plugins/editor.lua index b7ef6fb..701c91c 100644 --- a/nvim/lua/user/plugins/editor.lua +++ b/nvim/lua/user/plugins/editor.lua @@ -43,27 +43,25 @@ return { -- Align current relative number to the right. relculright = true, segments = { + { text = { " " } }, + { + click = "v:lua.ScSa", + sign = { + namespace = { ".*" }, + maxwidth = 1, + }, + }, + { + text = { builtin.lnumfunc, " " }, + click = "v:lua.ScLa", + }, { click = "v:lua.ScSa", sign = { namespace = { "gitsigns" }, maxwidth = 1, - colwidth = 1, } }, - { - click = "v:lua.ScSa", - sign = { - namespace = { "diagnostic/signs" }, - maxwidth = 1, - colwidth = 3, - -- auto = true, - } - }, - { - text = { builtin.lnumfunc, " " }, - click = "v:lua.ScLa", - }, -- { text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" }, { text = { "│ " } }, }