Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Question about using plugin's internal functions #856

Answered by williamboman
augustocdias asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! I just happened to make https://github.com/williamboman/mason.nvim public the other day. It provides codelldb as a package available for installation, might be of interest.

Here's my current code... I only get the prints of "install folder created" and "finished".

The second argument to async.run() is a callback that'll be invoked with 2 arguments pcall-style (success, value). Most likely there's an error occurring somewhere, which won't bubble up to the main event loop. I'd actually recommend using the async.scope function instead if you don't need to access the return value of the async function - it will ensure to log errors for you:

return {
    install_codelldb = async.scope(f…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@williamboman
Comment options

@augustocdias
Comment options

@williamboman
Comment options

@augustocdias
Comment options

@williamboman
Comment options

Answer selected by augustocdias
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