10

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
[-] PlexSheep@feddit.de 1 points 8 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@sh.itjust.works 1 points 8 months ago

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

[-] PlexSheep@feddit.de 1 points 8 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
10 points (91.7% liked)

Neovim

2178 readers
1 users here now

founded 1 year ago
MODERATORS