feat: remap organization and cleanup

This commit is contained in:
2026-03-03 11:11:38 +01:00
parent 92c9f02ab2
commit a7c14ff0ae
4 changed files with 60 additions and 93 deletions

View File

@@ -53,31 +53,31 @@ local config = {
toggle_hidden_on_enter = true, -- when you re-enter a hidden group this options re-opens that group so the buffer is visible
},
items = {
-- {
-- name = "Tests",
-- -- icon = "󰙨 ",
-- highlight = { underline = false },
-- priority = 2,
-- matcher = function(buf)
-- return buf.path:match("%.test") or buf.path:match("%_test") or buf.path:match("%_spec")
-- end,
-- },
-- {
-- name = "Docs",
-- -- icon = "󰈙 ",
-- priority = 3,
-- -- highlight = { undercurl = false, sp = "grey" },
-- highlight = { undercurl = false },
-- auto_close = false,
-- matcher = function(buf)
-- return buf.path:match("%.md") or buf.path:match("%.txt")
-- end,
-- separator = {
-- style = require("bufferline.groups").separator.tab,
-- },
-- },
{
name = "Tests",
-- icon = "󰙨 ",
highlight = { underline = false },
priority = 2,
matcher = function(buf)
return buf.path:match("%.test") or buf.path:match("%_test") or buf.path:match("%_spec")
end,
},
{
name = "Docs",
-- icon = "󰈙 ",
priority = 3,
-- highlight = { undercurl = false, sp = "grey" },
highlight = { undercurl = false },
auto_close = false,
matcher = function(buf)
return buf.path:match("%.md") or buf.path:match("%.txt")
end,
separator = {
style = require("bufferline.groups").separator.tab,
},
},
{
name = "Shells",
name = "Sh",
-- icon = " ",
highlight = { undercurl = false },
auto_close = false,