supermaven-inc / supermaven-nvim

The official Neovim plugin for Supermaven
https://supermaven.com/
MIT License
619 stars 30 forks source link

Getting suggestion in new lines before typing anything #8

Closed amirhhashemi closed 4 months ago

amirhhashemi commented 4 months ago

Sometimes I get suggestion while I haven't typed anything (in a new line).

image

I find it a little annoying. I would like to get suggestion only when I type at least one character. I think that should be the default behavior. All code completion tools I've worked with wait for me to type one or two character and then give me a suggestion based on that.

I can think of situations where this behaviour could be useful. Like when I have a function that is not defined and Supermaven can help me define it before I type anything. But in other situations I find it annoying. Unfortunately I get a lot of unuseful suggestions in new lines.

Please consider changing this behaviour or at least provide an option to configure it.

AlejandroSuero commented 4 months ago

@amirhhashemi, with the addition of cmp support by @kaiiserni in #28, you can use nvim-cmp to only give you suggestions after typing. So maybe this solves your problem.

[!NOTE]

The way to set it up it explained in this section of the README.md.

amirhhashemi commented 4 months ago

Ok, thanks. I will try it later. I close the issue for now.