-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: add nvim-tree awareness to avoid space collisions #163
Comments
Ugh, that’s because Fidget now uses editor-relative positioning and doesn’t know that it’s fighting for real estate with nvim-tree. I’ll have to think about how to fix this. The pragmatic way is to teach Fidget to be aware of nvim-tree, but I’m wondering if there’s any generic way to avoid buffer collisions without having to teach Fidget about every tray-style plugin out there. |
Perhaps a reasonable partial/temporary solution would be to give fidget an option to be offset from the right, specified in its configuration. |
Yeah, that would be the way to do it. I was reading up on the nvim-tree API and it’s definitely doable for that one plugin at least. (Note to self: other plugins: trouble.nvim, treesitter playground, aerial (?), telescope… ugh there’s so many.) |
Is there a reason why the window-relative options are not currently exposed? |
Helps mitigate #163 little (though not a real solution)
@fitrh because I didn't get around to testing it yet... Anyway, I just pushed a commit that adds this feature |
Thanks @j-hui. I looked through the commit and didn't realize neovim offered an API that would make for such a simple fix. Nicely done! |
No problem, glad it works for you (: It was actually a feature in the |
Also, update: I added 22b2ed8 to expose an API for dynamically adjusting the horizontal offset, but still need to figure out how to integrate that with nvim-tree (I'm not sure how to query the window size). I'm going to remove the bug label from this issue since a workaround exists, but I'll keep it open until Fidget properly integrates with nvim-tree (or until we decide to give up on that). |
GitHub path compression:
|
Have just moved off fidget.nvim's
legacy
tag and am very excited! I have discovered a small bug - fidget draws over the nvim-tree window. See below screenshot.https://aql.ink/7a49ff07.png
It appears to do this whether or not nvim-tree is open before or after fidget's first appearance in that session of nvim.
The text was updated successfully, but these errors were encountered: