Compare commits
No commits in common. "107ab1fefd92e1ae7361008e2c22155bd42f8b0b" and "01c16211ed96221baca78ccc3bde62ce860ead1d" have entirely different histories.
107ab1fefd
...
01c16211ed
@ -25,19 +25,24 @@ return {
|
||||
})
|
||||
|
||||
local std_condition = function(args)
|
||||
return #vim.api.nvim_get_option_value("bufhidden", { buf = args.buf }) == 0
|
||||
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"))
|
||||
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