nvim-flutter / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
1.05k stars 83 forks source link

Neovim LSP autocompletes everything twice when working with Flutter(dart) #344

Closed mmkumr closed 7 months ago

mmkumr commented 7 months ago

Is there an existing issue for this?

Current Behavior

Neovim LSP autocompletes everything twice only when working with Flutter(dart). I am not facing this problem while working with other programming languages. image I have uninstalled Dartls lsp server and using Flutter-tool.nvim. Still facing the same problem.

Steps To Reproduce

LSPInfo output:

Language client log: /home/mmkumr/.local/state/nvim/lsp.log
Detected filetype: dart
1 client(s) attached to this buffer:
Client: dartls (id: 1, bufnr: [1])
`filetypes:       dart`

`autostart:       false`

`root directory:  /run/media/mmkumr/MyWorkspace/Projects/xioty/Botchef_V2/Android/botchef_v2`

`cmd:             /opt/flutter/bin/dart language-server --protocol=lsp`
Configured servers list: bashls, clangd, cmake, cssls, lua_ls, intelephense, pyright, pylsp, marksman, quick_lint_js, html, arduino_language_server, vimls

Environment

- OS: Manjaro Linux x86_64
- Kernel: 6.5.13-7-MANJARO
- Flutter version: 3.19.5
- Dart version: 3.3.3
- Is flutter in $PATH: Yes
- neovim version: 0.9.5

Anything else?

No response

mmkumr commented 7 months ago

It's a bug present in nvim-cmp plugin.