lewis6991 / hover.nvim

Hover plugin framework for Neovim
MIT License
516 stars 35 forks source link

feat: add DAP provider #58

Closed pinbraerts closed 6 months ago

pinbraerts commented 6 months ago

Slightly hacky way to integrate mfussenegger/nvim-dap hover. The session API is async, so in order to support resizing and interactivity, DAP binds a window id to view. Instead of this I search for a window containing the buffer on update to resize it.

pinbraerts commented 6 months ago

All DAP interactivity persists in the window. Would be great if we had some way to focus window with keymap. Now it can be focused (only) with a mouse.

photo_2024-04-22_21-55-29

pinbraerts commented 6 months ago

Indent with 2 spaces please.

done

pinbraerts commented 6 months ago

Most of the functions are copied from mfussenegger/nvim-dap/lua/dap/ui/widgets.lua