From d31ab256f9138ff6ba99b5db401883ed48fbeec8 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 26 Dec 2024 05:05:26 +0100 Subject: [PATCH] lspsignature: add assertion against blink.cmp --- modules/plugins/lsp/lsp-signature/config.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/plugins/lsp/lsp-signature/config.nix b/modules/plugins/lsp/lsp-signature/config.nix index c9940534..535b2534 100644 --- a/modules/plugins/lsp/lsp-signature/config.nix +++ b/modules/plugins/lsp/lsp-signature/config.nix @@ -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"