akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mmkumr opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

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

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