added assertion to make sure ccc and otter aren't enabled at the same time

This commit is contained in:
Soliprem 2024-09-27 16:20:49 +02:00
parent 51710d33c6
commit d8d834be35

View file

@ -14,6 +14,14 @@
mappings = addDescriptionsToMappings cfg.otter.mappings mappingDefinitions; mappings = addDescriptionsToMappings cfg.otter.mappings mappingDefinitions;
in { in {
config = mkIf (cfg.enable && cfg.otter.enable) { 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 = { vim = {
startPlugins = ["otter-nvim"]; startPlugins = ["otter-nvim"];