From 5ad9df12beae78190d7f12cdc686346bc45b5a6d Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 17 Feb 2025 19:01:04 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20=20Cleaned(statuscolumn?= =?UTF-8?q?):=20remove=20failed=20attempts=20at=20modifying=20statuscolumn?= =?UTF-8?q?=20appearance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A while back some attempts were made to change the statuscolumn appearance but they failed to achieve an effective solution. Tidying up old commented code. --- lua/config/statuscolumn.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lua/config/statuscolumn.lua b/lua/config/statuscolumn.lua index fbef10c..7567efc 100644 --- a/lua/config/statuscolumn.lua +++ b/lua/config/statuscolumn.lua @@ -92,17 +92,6 @@ _G.CustomStatusColumn = function() -- Use the plugin's original status column local original_statuscolumn = require('snacks.statuscolumn').get() - -- local original_statuscolumn = [[%=%{v:relnum?v:relnum:v:lnum}]] - -- local original_statuscolumn = - -- [[%#NonText#%{&nu?v:lnum:""}%=%{&rnu&&(v:lnum%2)?"\ ".v:relnum:""}%#LineNr#%{&rnu&&!(v:lnum%2)?"\ ".v:relnum:""}]] - -- -- Obtain the current buffer explicitly - -- local bufnr = vim.api.nvim_get_current_buf() -- Correctly get the current buffer - -- - -- -- Get gitstatus - -- local git_status = 'none' - -- if lnum then - -- git_status = check_git_signs(lnum, bufnr) -- Pass the buffer number to the function - -- end -- Check for diagnostics on the current line local diagnostics = vim.diagnostic.get(0, { lnum = lnum - 1 }) -- Get diagnostics for the current line (subtract 1 for 0-based index)