-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pinned buffers stay visible (#408)
* ref(bbye): only use `list_reverse` if necessary * ref: `utils.has` -> `vim.tbl_contains` * perf(state): `pcall(function() foo(args) end)` → `pcall(foo, args)` The former creates a new anonymous function every time we call the function, whereas the latter calls an _existing_ function with the given arguments. It is ~4× faster * perf(state): `sort_pins_left` in place This is a 5–10× improvement, depending on the current layout of the bufferline. * ref: clarify `Buffer.for_each_counted_enabled_diagnostic` params * feat: pinned buffers only show file icon by default * feat: pinned buffers stay visible * ref: always use `is_pinned` when `buffer_data` is not in scope * perf(render): resolve proper icons on `setup` This is a >2× performance increase for `render.update` * fix: `button = ''` causes strange layout In some cases `button = ''` was interpreted as: "`''` is the `button` ", not "there is no button", as such the layout was being adjusted as if it was there. * fix: buffer move animation
- Loading branch information
Showing
11 changed files
with
380 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.