Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix: use name to get buffer filename
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldub committed Oct 29, 2023
1 parent 73d1d62 commit 72fcaab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/doom/modules/features/tabline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ tabline.settings = {
name = "Tests",
auto_close = true,
matcher = function(buf)
return buf.filename:match("%_test") or buf.filename:match("%_spec")
return buf.name:match("%_test") or buf.name:match("%_spec")
end,
},
{
name = "Docs",
auto_close = true,
matcher = function(buf)
return buf.filename:match("%.md") or buf.filename:match("%.txt")
return buf.name:match("%.md") or buf.name:match("%.txt")
end,
},
},
Expand Down

0 comments on commit 72fcaab

Please sign in to comment.