9
submitted 4 months ago by dream_weasel to c/[email protected]

Really enjoying nvim-dap-ui lately, but I always have to adjust the sizes of the windows. The docs have left me high and dry so far, but maybe one of you have a good solution for a consistent layout when you first attach to a file?

top 3 comments
sorted by: hot top controversial new old
[-] [email protected] 1 points 4 months ago

I just use the defaults, but you might be able to do something with auto commands.

Detect when the window you want opens and resize it with the regular vim commands or lua.

[-] dream_weasel 1 points 4 months ago

That's a good idea. Really the problem is that the repl is too narrow so it might not be too hard.

[-] [email protected] 1 points 4 months ago

I see. Yeah that can sometimes be annoying, but I personally find in my debug sessions that I don't use it a lot. There's just a lot of windows if you activate the debug ui.

What helps me is using a different tab to set breakpoints and browse my code. In the debug view I resize my windows so that the code browser only shows a very small window so that I can see where it jumps around. Code that I want to actually read is in the other tab.

this post was submitted on 14 Mar 2024
9 points (90.9% liked)

Neovim

1985 readers
1 users here now

founded 1 year ago
MODERATORS