You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nvim-dap-view is highly customizable. If the defaults do not fit your taste, most likely you can tweak a few options to suit your workflow. This article describes some of these options, but I recommend reading the full documentation, with emphasis on the "recipe" articles, the list of configuration options and the FAQ.
Auto Toggle
Out of the box, nvim-dap-view isn't shown when starting a session. That's a deliberate choice and will not change. You can tweak this behavior by enabling auto_toggle. There are some additional variations which you can look up in the docs.
Follow Tab
Vim tabs do not behave like tabs in other programs. Often, users mix tabs with buffers. If you make heavy use of tabs (even if unknowingly), you can try enabling the follow_tab option. It makes nvim-dap-view "always show up for the current tab". If you like it but find it too aggressive, you can set it to a function, to choose which tabs to "ignore" (e.g., a tab with a single terminal buffer, etc.)
switchbuf
When jumping to a frame (or breakpoint), nvim-dap-view needs to decide which will window will be used for the jump. This can be tweaked with the switchbuf option, which (sort of) mirrors Neovim's built-in 'switchbuf' (see :help switchbuf for details). By default, it uses a "tab friendly" setup, but if you hate tabs with a passion, you can set it to "useopen,uselast". You can read more about switchbuf on the FAQ.
Dynamic Layout
You can define windows.size, windows.position, windows.terminal.size and windows.terminal.position all as functions! This enables switching the position (e.g., right vs bottom) of nvim-dap-view windows depending on the other windows from the current tab! An example setup is shown here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
nvim-dap-viewis highly customizable. If the defaults do not fit your taste, most likely you can tweak a few options to suit your workflow. This article describes some of these options, but I recommend reading the full documentation, with emphasis on the "recipe" articles, the list of configuration options and the FAQ.Auto Toggle
Out of the box,
nvim-dap-viewisn't shown when starting a session. That's a deliberate choice and will not change. You can tweak this behavior by enablingauto_toggle. There are some additional variations which you can look up in the docs.Follow Tab
Vim tabs do not behave like tabs in other programs. Often, users mix tabs with buffers. If you make heavy use of tabs (even if unknowingly), you can try enabling the
follow_taboption. It makesnvim-dap-view"always show up for the current tab". If you like it but find it too aggressive, you can set it to a function, to choose which tabs to "ignore" (e.g., a tab with a single terminal buffer, etc.)switchbufWhen jumping to a frame (or breakpoint),
nvim-dap-viewneeds to decide which will window will be used for the jump. This can be tweaked with theswitchbufoption, which (sort of) mirrors Neovim's built-in'switchbuf'(see:help switchbuffor details). By default, it uses a "tab friendly" setup, but if you hate tabs with a passion, you can set it to"useopen,uselast". You can read more aboutswitchbufon the FAQ.Dynamic Layout
You can define
windows.size,windows.position,windows.terminal.sizeandwindows.terminal.positionall as functions! This enables switching the position (e.g., right vs bottom) ofnvim-dap-viewwindows depending on the other windows from the current tab! An example setup is shown here.Beta Was this translation helpful? Give feedback.
All reactions