Skip to content

How to disable the prefilling of method signatures with placeholders? #213

Answered by ray-x
ayoisaiah asked this question in Q&A
Discussion options

You must be logged in to vote

<Tab> in insert mode.
I set it up to work with luasnip & cmp with this

      ["<Tab>"] = cmp.mapping(function(fallback)
        if cmp.visible() then
          cmp.select_next_item()
        elseif luasnip.expand_or_jumpable() then
          luasnip.expand_or_jump()
        elseif has_words_before() then
          cmp.complete()
        else
          fallback()
          -- end
        end

Replies: 1 comment 1 reply

Comment options

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

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