Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 21, 2023
1 parent 242e384 commit 03e9dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lua/bufferline/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ local function restore_pinned_buffers()
if not pinned then return end
local manual_groupings = vim.split(pinned, ",") or {}
for _, path in ipairs(manual_groupings) do
local buf_id = fn.bufnr(
path --[[@as integer]]
)
local buf_id = fn.bufnr(path --[[@as integer]])
if buf_id ~= -1 then
set_manual_group(buf_id, PINNED_ID)
persist_pinned_buffers()
Expand Down
4 changes: 1 addition & 3 deletions lua/bufferline/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ function M.set(new_state)
for key, value in pairs(new_state) do
if value == vim.NIL then value = nil end
if vim.tbl_contains(component_keys, key) then
value = filter_invisible(
value --[=[@as bufferline.Component[]]=]
)
value = filter_invisible(value --[=[@as bufferline.Component[]]=])
end
state[key] = value
end
Expand Down

0 comments on commit 03e9dde

Please sign in to comment.