Closed ten3roberts closed 1 year ago
Another solution would be to truncate the children to the size of parent list, so that it doesn't size up and down on j/k but only on l/h
Thanks for this great feature btw, ever since the start this plugin is just getting better and better :heart:
If you want want to pin the window to a specific size, you can specify the height in the config opts. Would that work for you?
require("aerial").setup({
nav = {
height = 0.8,
},
})
Neovim version (nvim -v)
NVIM v0.10.0-dev-345+g66b7f6254
Operating system/version
Fedora 38
Output of :AerialInfo
Aerial Info
Filetype: rust
Configured backends:
treesitter (supported) (attached)
lsp (supported)
markdown (not supported) [Filetype is not markdown]
man (not supported) [Filetype is not man]
Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct
Describe the bug
When using the navigation window in a "parent" view and navigating ontop of a symbol with many children, such as a struct with many methods, the window will resize to accomodate the children shown on the right.
This is expected behavior.
However, this causes the window to shift and makes you lose track of your cursor. If repeatedly pressing up/down to navigate to your symbol the window will jump around to all different sizes which is distracting.
Steps To Reproduce
:AerialNavOpen
Expected Behavior
What would be preferred would be a sticky size, so that it does not size down for a while, so that the window does not go
10, 16, 5, 32, 5
in height when pressing up, but rather stays a somewhat consistent sizeMinimal example file
Minimal init.lua
Additional context