plugins/otter: remove cmp source registration

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
This commit is contained in:
refaelsh 2024-09-22 07:12:09 +03:00 committed by Matt Sturgeon
parent 47364df496
commit 9bcba520c8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 14 additions and 1 deletions

View file

@ -19,9 +19,17 @@ helpers.neovim-plugin.mkNeovimPlugin {
"otter"
"addCmpSources"
]
"Otter is now supported by `plugins.cmp.autoEnableSources`, adding `otter` to `cmp` sources will enable this plugin."
''
You should use the "cmp-nvim-lsp" source instead.
To quote upstream's README:
> If you previously used the otter nvim-cmp source, you can remove it, as the completion results now come directly via the cmp-nvim-lsp source together with other language servers.
''
)
# Register nvim-cmp association
# TODO: Otter is no longer a cmp-source
# Deprecated 2024-09-22; remove after 24.11
# Note: a warning is implemented in plugins/cmp/auto-enable.nix
{ cmpSourcePlugins.otter = "otter"; }
];

View file

@ -69,6 +69,11 @@ in
If you want to keep using raw lua for defining your sources:
- Ensure you enable the relevant plugins manually in your configuration;
- Dismiss this warning by explicitly setting `autoEnableSources` to `false`;
''
# TODO: Added 2024-09-22; remove after 24.11
++ optional (elem "otter" enabledSources) ''
Nixvim (plugins.cmp): "otter" is listed in `settings.sources`, however it is no longer a cmp source.
Instead, you should enable `plugins.otter` and use the "cmp-nvim-lsp" completion source.
'';
# If the user has enabled the `foo` and `bar` sources, then `plugins` will look like: