feat: Adding a gradient to the border between the statuscolumn and the

text body
This commit is contained in:
2026-07-08 19:58:39 -05:00
parent f88871bc4e
commit cf2e947d43

View File

@@ -1,7 +1,29 @@
local statuscolumn = {} local statuscolumn = {}
statuscolumn.setHL = function ()
local colors = {
'#888cd8',
'#8081cd',
'#7877c2',
'#706cb7',
'#6862ad',
'#6057a2',
'#584d97',
'#50438d',
'#493a82',
'#413078',
}
for i, color in ipairs(colors) do
vim.api.nvim_set_hl(0, 'Gradient_' .. i, { fg = color })
end
end
statuscolumn.border = function() statuscolumn.border = function()
return '' if vim.v.relnum < 9 then
return '%#Gradient_' .. (vim.v.relnum + 1) .. '#│'
else
return '%#Gradient_10#│'
end
end end
statuscolumn.folds = function() statuscolumn.folds = function()
@@ -37,6 +59,8 @@ end
statuscolumn.statusColumn = function() statuscolumn.statusColumn = function()
local column_text = '' local column_text = ''
statuscolumn.setHL()
column_text = table.concat({ column_text = table.concat({
'%s', '%s',
statuscolumn.numbers(), statuscolumn.numbers(),