Skip to content

autocomplete always adds $0 at the end when using mini.completion #394

Closed Answered by mrcjkb
olekspickle asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

this plugin doesn't do anything related to autocompletion, but it does register the capablilty textDocument.completion.completionItem.snippetSupport = true by default.
Most completion plugins have snippet support, and Neovim 0.10 (nightly) has native snippet support.
So this feels like a sane default to me.

mini.completion doesn't have snippet support, so you need to disable it, by setting

vim.g.rustaceanvim.server.capabilities.textDocument.completion.completionItem.snippetSupport = false

See also: :h rustaceanvim.config.

I will push a hotfix to make sure rustaceanvim only enables snippet support for Neovim >= 0.10.

Replies: 3 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
@mrcjkb
Comment options

Answer selected by olekspickle
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #393 on May 16, 2024 14:52.