Skip to content

Commit 1391a64

Browse files
committed
plugins/otter: switch to nvim-cmp association
Removes the addCmpSources option.
1 parent 17f4aa5 commit 1391a64

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

plugins/languages/otter.nix

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ helpers.neovim-plugin.mkNeovimPlugin config {
1212

1313
maintainers = [ lib.maintainers.perchun ];
1414

15+
imports = [
16+
# TODO: introduced 2024-06-29; remove after 24.11
17+
(lib.mkRemovedOptionModule
18+
[
19+
"plugins"
20+
"otter"
21+
"addCmpSources"
22+
]
23+
"Otter is now supported by `plugins.cmp.autoEnableSources`, adding `otter` to `cmp` sources will enable this plugin."
24+
)
25+
# Register nvim-cmp association
26+
{ cmpSourcePlugins.otter = "otter"; }
27+
];
28+
1529
settingsOptions = {
1630
lsp = {
1731
hover = {
@@ -69,18 +83,4 @@ helpers.neovim-plugin.mkNeovimPlugin config {
6983
When true, otter handles these cases fully. This is a (minor) performance hit.
7084
'';
7185
};
72-
73-
extraOptions = {
74-
addCmpSources = lib.mkOption {
75-
type = lib.types.bool;
76-
default = true;
77-
description = ''
78-
Automatically add otter to cmp sources, as it is required for some functionality.
79-
'';
80-
};
81-
};
82-
83-
extraConfig = cfg: {
84-
plugins.cmp.settings.sources = lib.mkIf cfg.addCmpSources [ { name = "otter"; } ];
85-
};
8686
}

0 commit comments

Comments
 (0)