mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
plugins/otter: switch to nvim-cmp association
Removes the addCmpSources option.
This commit is contained in:
parent
17f4aa5556
commit
1391a64cf6
1 changed files with 14 additions and 14 deletions
|
@ -12,6 +12,20 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.perchun ];
|
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 = {
|
settingsOptions = {
|
||||||
lsp = {
|
lsp = {
|
||||||
hover = {
|
hover = {
|
||||||
|
@ -69,18 +83,4 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
||||||
When true, otter handles these cases fully. This is a (minor) performance hit.
|
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"; } ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue