Wednesday, January 18, 2023

Emacs lsp-mode multiple completions

Recently I started using lsp-mode with company-mode for completions (Following instructions from How to setup Emacs LSP Mode for Go). I was pretty happy with my configuration which for pretty basic using use-package But, soon ran into the following issue where 2 completion minibuffers started showing up.
So, did a bit of googling to land in Multiple completion modes enabled. How to fix this?. It did not fix my issue but, pointed me in the right direction. So, I looked at the current values for company-frontends & company-backends in the buffer in question and found that auto-complete-mode was enabled which was the contributor to the lower completion buffer which I wanted to get rid off. I also remembered disabling global-auto-complete-mode But, the devil is in the details taking a peek into ac-config-default showed the culprit (all the way below in line #10). So, with a little tinkering later we get And, all is well in Emacs :)

No comments: