lspsignature: add assertion against blink.cmp

This commit is contained in:
Ching Pei Yang 2024-12-26 05:05:26 +01:00
parent d03030d02a
commit 9f8a3137eb
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -10,6 +10,16 @@
cfg = config.vim.lsp;
in {
config = mkIf (cfg.enable && cfg.lspSignature.enable) {
assertions = [
{
assertion = !config.vim.autocomplete.blink-cmp.enable;
message = ''
lsp-signature does not work with blink.cmp. Please use blink.cmp's builtin signature feature:
vim.autocomplete.blink-cmp.setupOpts.signature.enabled = true;
'';
}
];
vim = {
startPlugins = [
"lsp-signature"