plugins/otter: switch to nvim-cmp association

Removes the addCmpSources option.
This commit is contained in:
Matt Sturgeon 2024-06-29 10:08:55 +01:00
parent 17f4aa5556
commit 1391a64cf6
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -12,6 +12,20 @@ helpers.neovim-plugin.mkNeovimPlugin config {
maintainers = [ lib.maintainers.perchun ];
imports = [
# TODO: introduced 2024-06-29; remove after 24.11
(lib.mkRemovedOptionModule
[
"plugins"
"otter"
"addCmpSources"
]
"Otter is now supported by `plugins.cmp.autoEnableSources`, adding `otter` to `cmp` sources will enable this plugin."
)
# Register nvim-cmp association
{ cmpSourcePlugins.otter = "otter"; }
];
settingsOptions = {
lsp = {
hover = {
@ -69,18 +83,4 @@ helpers.neovim-plugin.mkNeovimPlugin config {
When true, otter handles these cases fully. This is a (minor) performance hit.
'';
};
extraOptions = {
addCmpSources = lib.mkOption {
type = lib.types.bool;
default = true;
description = ''
Automatically add otter to cmp sources, as it is required for some functionality.
'';
};
};
extraConfig = cfg: {
plugins.cmp.settings.sources = lib.mkIf cfg.addCmpSources [ { name = "otter"; } ];
};
}