otter: change assert into a warning

This commit is contained in:
Francesco Prem Solidoro 2025-03-07 18:32:22 +01:00
commit 6c2c236a5b

View file

@ -15,13 +15,12 @@
mappings = addDescriptionsToMappings cfg.otter-nvim.mappings mappingDefinitions; mappings = addDescriptionsToMappings cfg.otter-nvim.mappings mappingDefinitions;
in { in {
config = mkIf (cfg.enable && cfg.otter-nvim.enable) { config = mkIf (cfg.enable && cfg.otter-nvim.enable) {
assertions = [ warnings = [
{ # TODO: remove warning when we update to nvim 0.11
assertion = !config.vim.utility.ccc.enable; (mkIf config.vim.utility.ccc.enable ''
message = '' ccc and otter have conflict that will disappear with nvim 0.11.
ccc and otter have a breaking conflict. It's been reported upstream. Until it's fixed, disable one of them In the meantime, otter handles it by throwing a warnign, but both plugins will work.
''; '')
}
]; ];
vim = { vim = {
startPlugins = ["otter-nvim"]; startPlugins = ["otter-nvim"];