How can i disable blink completions in an inline custom prompt? #547
-
Hi everyone, I'm using LazyVim along with the Blink and Snacks plugins. I noticed that when an input is required for a custom prompt, the Blink plugin activates, and it becomes super annoying as it tries to autocomplete automatically. I assume this might also happen with nvim-cmp, but I still need to confirm that. Has anyone encountered this issue, or does anyone know how to fix it? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Yep this is happening for me as well. There may be a setting to disable it for certain file types. I haven't looked into it yet. |
Beta Was this translation helpful? Give feedback.
-
A different approach from the one Oli suggested is this: if you're using snacks.input, you can do the following: input = {
b = {
completion = false, -- disable blin completions in input
}
} |
Beta Was this translation helpful? Give feedback.
-
I should have said you'd need to customise this for your own config. Thanks @bassamsdata |
Beta Was this translation helpful? Give feedback.
Actually,
snacks.input
is just a wrapper aroundvim.ui.input()
. So, if you're typing in the prompt inside a floating window like the one below, you're usingsnacks.input
.One suggestion to Oli's solution is to add the filetype
"snacks_input"
to the filetypes list, assnacks.input
uses this filetype by default.