mrcjkb / rustaceanvim

Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim
GNU General Public License v2.0
1.3k stars 47 forks source link

Repeating snippets in completion #428

Closed pudnax closed 1 month ago

pudnax commented 1 month ago

Have you read the docs and searched existing issues?

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

6.9.3-arch1-1

Output of :checkhealth rustaceanvim

rustaceanvim: require("rustaceanvim.health").check()

Checking for Lua dependencies ~
- OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.

Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 0.3.2002-standalone
- OK Cargo: found cargo 1.81.0-nightly (4dcbca118 2024-06-11)
- OK rustc: found rustc 1.81.0-nightly (8337ba918 2024-06-12)
- OK debug adapter: found codelldb 

Checking config ~
- OK No errors found in config.

Checking for conflicting plugins ~
- OK No conflicting plugins detected.

Checking for tree-sitter parser ~
- OK tree-sitter parser for Rust detected.

How to reproduce the issue

It happens in both my config and [kickstart.nvim](https://github.com/nvim-lua/kickstart.nvim).

Expected behaviour

Each snippet shows only once.

Actual behaviour

Same snippet appear multiple time cluttering the view. Used plugins are nvim-cmp and lusnip. image

The minimal config used to reproduce this issue.

-- kickstart.nvim
mrcjkb commented 1 month ago

Hey :wave:

RobertMenke commented 1 month ago

For me, this was an issue when I was using mason to install rust-analyzer. When I installed rust-analyzer via rustup component add rust-analyzer the snippets work as expected.