From cf2e947d4315a17a728f01598232266e4ca7df5a Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Wed, 8 Jul 2026 19:58:39 -0500 Subject: [PATCH] feat: Adding a gradient to the border between the statuscolumn and the text body --- nvim/lua/statuscolumn.lua | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/nvim/lua/statuscolumn.lua b/nvim/lua/statuscolumn.lua index b8ac179..57e8a31 100644 --- a/nvim/lua/statuscolumn.lua +++ b/nvim/lua/statuscolumn.lua @@ -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(),