GithubHelp home page GithubHelp logo

Comments (6)

mfussenegger avatar mfussenegger commented on May 19, 2024 1

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.

theHamsta avatar theHamsta commented on May 19, 2024

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.

Shatur avatar Shatur commented on May 19, 2024

Got it!
But how can I close or replace the window with another?

from nvim-dap.

theHamsta avatar theHamsta commented on May 19, 2024

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.

mfussenegger avatar mfussenegger commented on May 19, 2024

@Shatur Did you have a look if the widget API covers your needs?

from nvim-dap.

Shatur avatar Shatur commented on May 19, 2024

@mfussenegger, hm... yes, I think this solves my issue.

from nvim-dap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.