Skip to content

Number of suggestions as a component? #59

Answered by monkoose
dasupradyumna asked this question in Q&A
Discussion options

You must be logged in to vote

But I have implemented it.
You can use last commit. Documentation should be updated.

But you can now subscribe to NeoCodeiumLabelUpdated autocmd to get label text.

vim.api.nvim_create_autocmd("User", {
    pattern = "NeoCodeiumLabelUpdated",
    -- Don't forget to add some `group`
    callback = function(ev)
        -- Use ev.data to update your statusline
       -- As example print to cmdline
       vim.print(ev.data)
    end,
})

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dasupradyumna
Comment options

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