diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-09-24 04:19:28 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-09-24 04:19:28 +0200 |
| commit | 7ed2303648bf83bb081d9bd863660ebf2344ce47 (patch) | |
| tree | 702f5f832796b572d0faee31c0eb15507e91f49a /lua/plugins/statuscol.lua | |
| parent | 2a8020a2e9b7ef2ee77ddee14892127a4eb95187 (diff) | |
| download | dotfiles-7ed2303648bf83bb081d9bd863660ebf2344ce47.tar.gz dotfiles-7ed2303648bf83bb081d9bd863660ebf2344ce47.zip | |
Squashed 'common/config/nvim/' changes from 2a8020a..966d12a
966d12a Update/Overhaul
git-subtree-dir: common/config/nvim
git-subtree-split: 966d12ac730c83da90d60ab24eae539b2ea69441
Diffstat (limited to 'lua/plugins/statuscol.lua')
| -rwxr-xr-x[-rw-r--r--] | lua/plugins/statuscol.lua | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/lua/plugins/statuscol.lua b/lua/plugins/statuscol.lua index 24a2308..c538790 100644..100755 --- 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 |
