Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: nvim-cmp Completion Popup Overlaps with LSP Hover Popup in LazyVim #1003

Open
4 tasks done
xinghe98 opened this issue Nov 25, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@xinghe98
Copy link

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.2

Operating system/version

windows11/wsl2-arch

Describe the bug

When typing in LazyVim, the completion popup from nvim-cmp and the LSP hover documentation popup often overlap, especially when certain characters are typed (like <). The completion window (cmp) should take priority over the hover window, but currently, both are shown simultaneously, causing visual clutter and confusion during coding.
384584932-b1579983-74c0-4ab7-b3e2-9691730d582b

Steps To Reproduce

  1. Install and use LazyVim with the default configuration.
  2. Open a TypeScript/JavaScript/React file.
  3. Start typing a JSX tag like <App.
  4. Notice that both the LSP hover popup and the cmp completion popup appear simultaneously, resulting in overlapping windows.

Expected Behavior

The cmp completion window should take precedence over the LSP hover window when a completion is in progress. Ideally, the hover window should either:

  • Be hidden when the cmp window is active.
  • Be shown only after a completion selection is made (if the user wants to see hover details for the selected item).

Possibly add an option to delay or suppress the hover popup when the cmp window is active.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "LazyVim/LazyVim", import = "lazyvim.plugins" },
    -- add any other plugins here
  },
})
@xinghe98 xinghe98 added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant