Compare commits
3 Commits
01c16211ed
...
107ab1fefd
Author | SHA1 | Date | |
---|---|---|---|
107ab1fefd | |||
1ea1169b73 | |||
d6a21aac2b |
@ -25,24 +25,19 @@ return {
|
||||
})
|
||||
|
||||
local std_condition = function(args)
|
||||
local buf_opt = function(option_name)
|
||||
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"))
|
||||
return #vim.api.nvim_get_option_value("bufhidden", { buf = args.buf }) == 0
|
||||
end
|
||||
|
||||
return {
|
||||
setopt = true,
|
||||
relculright = false,
|
||||
bt_ignore = {
|
||||
"help",
|
||||
},
|
||||
segments = {
|
||||
{ text = { "%s" }, click = "v:lua.ScSa" },
|
||||
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
|
||||
{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||
{
|
||||
text = {
|
||||
function(args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user