Skip to content

Commit

Permalink
refactor: normalize notation used for defining functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 22, 2024
1 parent a96ee08 commit 3b7086a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/astroui/status/heirline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
--- Make a list of buffers, rendering each buffer with the provided component
---@param component table
---@return table
M.make_buflist = function(component)
function M.make_buflist(component)
local overflow_hl = hl.get_attributes("buffer_overflow", true)
return require("heirline.utils").make_buflist(
status_utils.surround(
Expand Down
2 changes: 1 addition & 1 deletion lua/astroui/status/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function M.update_events(opts)
---@cast opts AstroUIUpdateEvent[]
return function(self)
if not rawget(self, "once") then
local clear_cache = function() self._win_cache = nil end
local function clear_cache() self._win_cache = nil end
for _, event in ipairs(opts) do
local event_opts = { callback = clear_cache }
if type(event) == "table" then
Expand Down

0 comments on commit 3b7086a

Please sign in to comment.