We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
buffer_matches
1 parent 3d1f7b0 commit d4fb5c2Copy full SHA for d4fb5c2
lua/astroui/status/condition.lua
@@ -45,7 +45,7 @@ local buf_matchers = {
45
function M.buffer_matches(patterns, bufnr, op)
46
if not op then op = "or" end
47
if not bufnr then bufnr = 0 end
48
- if require("astrocore.buffer").is_valid(bufnr) then
+ if vim.api.nvim_buf_is_valid(bufnr) then
49
for kind, pattern_list in pairs(patterns) do
50
if buf_matchers[kind](pattern_list, bufnr) then
51
if op == "or" then return true end
0 commit comments