-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api) Allow adding expresion to watch #160
Comments
I did not found the solution in the previous API but in the new API the example local function watchExpression(expression)
dapui.elements.watches.add(expression)
end
vim.api.nvim_create_user_command('DapiUIAddToWatch', function (opts)
watchExpression(opts.args)
end , {nargs = 1}) shows that it's possible 🎉 |
In my local env have added both cmd and visualmode: I suspect that exposing such feature in the way similar to |
Ha didn't even get to post the update before you spotted it, great to hear it being used already 😄
Great idea, I've added the same ability in the latest commit! |
Thanks. I looked into the change to ensure if it allows selection in both directions 👍 It would be good to add some docs about the new feature too. |
Similarly to
dapui.eval
it'd be good to can add (especially from visual selection) expression to watches. It seems that currentlyWatches:add_watch
is called only for manually typed expressions.The text was updated successfully, but these errors were encountered: