Fork me on GitHub
#lsp
<
2023-12-12
>
otfrom14:12:09

Do people here use cape to wrap up the company stuff in lsp-mode to make it play nicely with vertico/cofu/others? https://github.com/minad/cape?tab=readme-ov-file#company-adapter

Ellis14:12:11

No need if you're using corfu with lsp, only reason you would if you were interacting with a company-specific backend.

otfrom14:12:10

I must be doing something wrong then. I'm currently getting cofu and company completion popups, but good to know that corfu should work on its own

Ellis14:12:13

AFAICT the only relevant config I have is setting lsp-completion-provider to :none after lsp-mode is loaded and (advice-add #'lsp-completion-at-point :around #'cape-wrap-noninterruptible) to reduce the blocking

Alexander Kouznetsov18:12:59

Would lsp consider supporting this nice to have?

ericdallo18:12:48

I think we could do this custom setup for clj-kondo hooks or lsp configs

👍 1
Alexander Kouznetsov22:12:54

Should I file an issue?

Alexander Kouznetsov18:12:10

I also filed https://github.com/clojure-lsp/clojure-lsp/issues/1737 that automates the hook creation for me.

👍 1