Open joshualex opened 1 year ago
As far as I can understand this is not a bug in lsp-mode, as it doesn't reproduce in lsp-start-plain
This is not a bug in lsp-mode, as @joshualex says, the problem probably is that company mode is triggered, and because lsp does not find any relevant completions for :
it suggests other entries that other backends return. I agree with the OP that this behavior is annoying though.
I confirm that...
[X] I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
[X] I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
[X] The issue can be reproduced on the latest available commit of Doom.
[X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. (Doom does not support development builds like 29+ or any version ending in .50 or .9x)
Expected behavior
I turn on lsp for cc mode using the following in
init.el
:(cc +lsp)
I also have company enabled under
:completion
When running this configuration with clangd installed, opening a
.c
file and hitting something that ends with a colon (e.g.case 2:
) I expect nothing to happen and no completion dropdown to appearCurrent behavior
writing the above triggers the completion dropdown with irrelevant suggestions (e.g. comment-line).
Steps to reproduce
2:
in the fileSystem Information
https://pastebin.com/9sdNAz0n