We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
signcolumn_enabled
1 parent ac57932 commit 504623cCopy full SHA for 504623c
lua/astroui/status/condition.lua
@@ -140,4 +140,8 @@ function M.foldcolumn_enabled() return vim.opt.foldcolumn:get() ~= "0" end
140
---@return boolean # true if vim.opt.number or vim.opt.relativenumber, false if neither
141
function M.numbercolumn_enabled() return vim.opt.number:get() or vim.opt.relativenumber:get() end
142
143
+--- A condition function if the signcolumn is enabled
144
+---@return boolean # false if vim.opt.signcolumn == "no", true otherwise
145
+function M.signcolumn_enabled() return vim.opt.signcolumn:get() ~= "no" end
146
+
147
return M
0 commit comments