Comments (6)
This is kinda by design so that you can expand nested variables. To close the window you can use CTRL-W_q
from nvim-dap.
The native LSP float is now also enterable (the bug preventing that seemed to be fixed). So vim.lsp.util.open_floating_preview()
could also replace or optionally replace popup
(except that buf and win are swapped). I actually learned to like the new behavior with auto-entering.
from nvim-dap.
Got it!
But how can I close or replace the window with another?
from nvim-dap.
You could add an additional parameter to hover that creates the window and would use it when it's defined instead of popup https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L275 . Additionally you would have to https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L192-L213 to a separate function and apply it to the generated buffer. Or you let popup accept a window/buffer creation function.
You could also have a look what kind of option you can set with this line: https://github.com/theHamsta/nvim-dap/blob/724ea5aaa05dd7927d2745b7cf35a9f557e75c5c/lua/dap/ui/variables.lua#L192-L213
from nvim-dap.
@Shatur Did you have a look if the widget API covers your needs?
from nvim-dap.
@mfussenegger, hm... yes, I think this solves my issue.
from nvim-dap.
Related Issues (20)
- Unable to attach to process using netcoredbg HOT 2
- Unable to launch a debugger correctly on macos m2
- very slow when not debuging just plain go to definition HOT 2
- Can't set a breakpoint or pause the thread when run without breakpoints HOT 1
- Breakpoints inside lambda function HOT 1
- gdb does not shut down gracefully HOT 2
- "Wait for breakpoint" Triggered break points HOT 1
- With preview, a supplied expression is not passed to the refresh HOT 1
- Auto scroll when repl is not the active window
- Terminate only works before first breakpoint on vscode-js-debug
- Won't terminate after the first encountered breakpoint on vscode-js-debug HOT 9
- Cannot connect to gdbserver HOT 2
- Evaluate response throws Error for hover() etc. HOT 2
- nvim-dap not call disconnect leads lldb-vscode crash after debug session stop HOT 4
- `pick_process` does not work when a filter is passed to it HOT 4
- [BUG]: widgets.sidebar.toggle() causes incremental lag (js-debug-adapter) HOT 1
- Breakpoint unverified error (CodeLLDB) HOT 1
- Can't properly run debug session, it hangs after start HOT 1
- [lldb-vscode] Breakpoint unverified in nvim-dap but resolved accurately in lldb cli? HOT 3
- No reaction to configurations change in Godot 4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-dap.