From 6c2c236a5b1a8dacaead3a1a3d3e235e0706b7b1 Mon Sep 17 00:00:00 2001 From: Francesco Prem Solidoro Date: Fri, 7 Mar 2025 18:32:22 +0100 Subject: [PATCH] otter: change assert into a warning --- modules/plugins/lsp/otter/config.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/plugins/lsp/otter/config.nix b/modules/plugins/lsp/otter/config.nix index c8a2d3c6..3613065f 100644 --- a/modules/plugins/lsp/otter/config.nix +++ b/modules/plugins/lsp/otter/config.nix @@ -15,13 +15,12 @@ mappings = addDescriptionsToMappings cfg.otter-nvim.mappings mappingDefinitions; in { config = mkIf (cfg.enable && cfg.otter-nvim.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 - ''; - } + warnings = [ + # TODO: remove warning when we update to nvim 0.11 + (mkIf config.vim.utility.ccc.enable '' + ccc and otter have conflict that will disappear with nvim 0.11. + In the meantime, otter handles it by throwing a warnign, but both plugins will work. + '') ]; vim = { startPlugins = ["otter-nvim"];