File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments