From 966d12ac730c83da90d60ab24eae539b2ea69441 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 00:14:04 +0200 Subject: Update/Overhaul --- lua/plugins/statuscol.lua | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) mode change 100644 => 100755 lua/plugins/statuscol.lua (limited to 'lua/plugins/statuscol.lua') diff --git a/lua/plugins/statuscol.lua b/lua/plugins/statuscol.lua old mode 100644 new mode 100755 index 24a2308..c538790 --- a/lua/plugins/statuscol.lua +++ b/lua/plugins/statuscol.lua @@ -1,13 +1,17 @@ -local status, statuscol = pcall(require, "statuscol") +local M = {} -if not status then - vim.notify("statuscol not found") - return -end +function M.setup() + local ok, statuscol = pcall(require, "statuscol") + if not ok or not statuscol then + return false + end -local builtin = require("statuscol.builtin") + local builtin_ok, builtin = pcall(require, "statuscol.builtin") + if not builtin_ok or not builtin then + return false + end -statuscol.setup({ + statuscol.setup({ segments = { { text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, { text = { "%s" }, click = "v:lua.ScSa" }, @@ -25,4 +29,9 @@ statuscol.setup({ "dapui_console", "dapui_repl", }, -}) + }) + + return true +end + +return M -- cgit v1.2.3