1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/editor.lua: fixing status column some more.

This commit is contained in:
Henrik Hautakoski 2025-01-29 09:27:51 +01:00
parent c076f9bdd9
commit ab5acf4263

View file

@ -86,6 +86,7 @@ return {
namespace = { "gitsigns" }, namespace = { "gitsigns" },
maxwidth = 1, maxwidth = 1,
colwidth = 1, colwidth = 1,
foldclosed = true,
} }
}, },
{ {
@ -94,18 +95,23 @@ return {
name = { ".*" }, name = { ".*" },
namespace = { ".*" }, namespace = { ".*" },
maxwidth = 1, maxwidth = 1,
foldclosed = true,
}, },
}, },
{ {
text = { builtin.lnumfunc, " " }, text = { " ", builtin.lnumfunc, " " },
click = "v:lua.ScLa", 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 = { text = {
function(args) function(args)
local pos = vim.api.nvim_win_get_cursor(args.win) 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, end,
}, },
}, },