Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wrong size buffer width with NvimTree #144

Merged
merged 1 commit into from
Jan 15, 2023
Merged

Conversation

shortcuts
Copy link
Owner

📃 Summary

contributes to #133
closes #142

The width of the tree was still taken into account with the reopen = false option. We now reset the registered trees width before computing the padding, if reopen is false.

Other changes

The close option doesn't make sense actually, we close it anyway, a single option is enough.

📸 Preview

before

Screenshot 2023-01-15 at 21 36 44

after

Screenshot 2023-01-15 at 21 37 32

@shortcuts shortcuts self-assigned this Jan 15, 2023
@shortcuts shortcuts merged commit cc388da into main Jan 15, 2023
@shortcuts shortcuts deleted the fix/nvimtree-resize branch January 15, 2023 20:40
shortcuts pushed a commit that referenced this pull request Jan 15, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.5.0](v0.4.0...v0.5.0)
(2023-01-15)


### Features

* add `onedark` theme
([#140](#140))
([9bf7ca5](9bf7ca5))
* add built-in scratchpad
([#141](#141))
([d76812c](d76812c))
* properly position buffers with NvimTree
([#134](#134))
([c1f5f2a](c1f5f2a))


### Bug Fixes

* set scratchpad buffers as `unlisted`
([#143](#143))
([5e215cf](5e215cf))
* wrong size buffer width with NvimTree
([#144](#144))
([cc388da](cc388da))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: enabling with NvimTree opened doesn't set the correct width of the side buffer
1 participant