Skip to content

Commit ab11856

Browse files
whoop-tmehalter
authored andcommitted
fix(status): incorrect return def in buffer_matches
1 parent c14fc11 commit ab11856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astroui/status/condition.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ local buf_matchers = {
4040
---@param patterns table<BufMatcherKinds, BufMatcherPatterns> the table of patterns to match
4141
---@param bufnr integer? of the buffer to match (Default: 0 [current])
4242
---@param op "and"|"or"? whether or not to require all pattern types to match or any (Default: "or")
43-
---@return boolean # whether or not LSP is attached
43+
---@return boolean # whether or not the buffer filetype,buftype,bufname match a pattern
4444
-- @usage local heirline_component = { provider = "Example Provider", condition = function() return require("astroui.status").condition.buffer_matches { buftype = { "terminal" } } end }
4545
function M.buffer_matches(patterns, bufnr, op)
4646
if not op then op = "or" end

0 commit comments

Comments
 (0)