Skip to content
Discussion options

You must be logged in to vote

I do not hate callbacks, it's just that nvim-dap requires a string or a function that returns a string to setup its arguments
Fortunately, turns out that if you pass nvim-dap a function, it will run it inside a coroutine, so that's how I implemented what I need:
https://github.com/enderbeatt/neovim-config/blob/master/lua/handmade/debug_helpers.lua#L40-L65

And that's where I use it:
https://github.com/enderbeatt/neovim-config/blob/master/lua/plugin/debug/config.lua#L40-L42

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@enderbeatt
Comment options

@drowning-cat
Comment options

@enderbeatt
Comment options

Answer selected by enderbeatt
@drowning-cat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants