Compare commits

..

3 Commits

Author SHA1 Message Date
107ab1fefd
refactor(nvim): remove leading space for statuscol folds
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 54s
2024-04-19 04:49:49 -05:00
1ea1169b73
feat(nvim): ignore help buf types for statuscolumn 2024-04-19 04:49:21 -05:00
d6a21aac2b
refactor(nvim): simplify std_condition for statuscolumn 2024-04-19 04:48:59 -05:00

View File

@ -25,24 +25,19 @@ return {
}) })
local std_condition = function(args) local std_condition = function(args)
local buf_opt = function(option_name) return #vim.api.nvim_get_option_value("bufhidden", { buf = args.buf }) == 0
local value = vim.api.nvim_get_option_value(option_name, { buf = args.buf })
if value == "" then
return nil
else
return value
end
end
return (not buf_opt("bufhidden"))
end end
return { return {
setopt = true, setopt = true,
relculright = false, relculright = false,
bt_ignore = {
"help",
},
segments = { segments = {
{ text = { "%s" }, click = "v:lua.ScSa" }, { text = { "%s" }, click = "v:lua.ScSa" },
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" }, { text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" }, { text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
{ {
text = { text = {
function(args) function(args)