Overide snippets via Plugin

Hi there,
i have file “entry.php” in snippets/includes and a simple Plugin with the same file. For some reason the file is not overwritten by the one in the Plugin.

I registered the snippet like that:

Kirby::plugin('khepri-design/custom-extension', [
  'snippets' => [
    'includes/entry' => __DIR__ . '/snippets/includes/entry.php',
  ],
]);

Any ideas?

The hierarchy actually works the other way around: snippets in the local site setup overrule snippets from plugins (which is handy when customizing a third party plugin’s rendering for your own use). So you’d have to either delete/rename the snippet in your site/snippets folder or register the plugin’s snippet under a different name.