Skip to content

How to limit responses until n characters are typed? #2019

Answered by fitrh
cyrus01337 asked this question in Q&A
Discussion options

You must be logged in to vote

the moment I break a new line, which gets quite annoying in a context that IMO doesn't require completion

I don't think newline cause completion to be triggered

To limit completion until a certain character is typed, you can use the completion.keyword_length config

cmp.setup({
  completion = {
    keyword_length = 3,
  },
})

Replies: 1 comment 1 reply

Comment options

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

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