From d8d834be355a7f3c0af35dc076789093116586ce Mon Sep 17 00:00:00 2001 From: Soliprem Date: Fri, 27 Sep 2024 16:20:49 +0200 Subject: [PATCH] added assertion to make sure ccc and otter aren't enabled at the same time --- modules/plugins/lsp/otter/config.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/plugins/lsp/otter/config.nix b/modules/plugins/lsp/otter/config.nix index fa1f740..8c4d0b7 100644 --- a/modules/plugins/lsp/otter/config.nix +++ b/modules/plugins/lsp/otter/config.nix @@ -14,6 +14,14 @@ mappings = addDescriptionsToMappings cfg.otter.mappings mappingDefinitions; in { config = mkIf (cfg.enable && cfg.otter.enable) { + assertions = [ + { + assertion = !config.vim.utility.ccc.enable; + message = '' + ccc and otter have a breaking conflict. It's been reported upstream. Until it's fixed, disable one of them + ''; + } + ]; vim = { startPlugins = ["otter-nvim"];