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;
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"];