Skip to content

feat: optional close button for tabufline buffers #523

@y2w8

Description

@y2w8

i dont need it since i have shortcut to kill buffer and its annoying and it take space

im not very good in lua but i think this lines need to change

local close_btn = btn(" 󰅖 ", nil, "KillBuf", nr)
name = btn(name, nil, "GoToBuf", nr)
-- modified bufs icon or close icon
local mod = get_opt("mod", { buf = nr })
local cur_mod = get_opt("mod", { buf = 0 })
-- color close btn for focused / hidden buffers
if is_curbuf then
close_btn = cur_mod and txt("", "BufOnModified") or txt(close_btn, "BufOnClose")
else
close_btn = mod and txt("", "BufOffModified") or txt(close_btn, "BufOffClose")
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions