You've already forked dotfiles
feat: Adding a gradient to the border between the statuscolumn and the
text body
This commit is contained in:
@@ -1,7 +1,29 @@
|
||||
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()
|
||||
return '│'
|
||||
if vim.v.relnum < 9 then
|
||||
return '%#Gradient_' .. (vim.v.relnum + 1) .. '#│'
|
||||
else
|
||||
return '%#Gradient_10#│'
|
||||
end
|
||||
end
|
||||
|
||||
statuscolumn.folds = function()
|
||||
@@ -37,6 +59,8 @@ end
|
||||
statuscolumn.statusColumn = function()
|
||||
local column_text = ''
|
||||
|
||||
statuscolumn.setHL()
|
||||
|
||||
column_text = table.concat({
|
||||
'%s',
|
||||
statuscolumn.numbers(),
|
||||
|
||||
Reference in New Issue
Block a user