plugins/windsurf-nvim: rename codeium-nvim

Rename plugin, use new packpathname, and update deprecations to point
from old name to new name.
This commit is contained in:
Austin Horstman 2025-04-19 12:22:25 -05:00 committed by nix-infra-bot
parent 662a7c8dc7
commit 1971ec5b2b
4 changed files with 63 additions and 46 deletions

View file

@ -1,36 +0,0 @@
{
deprecateExtraOptions = true;
optionsRenamedToSettings = [
"configPath"
"binPath"
[
"api"
"host"
]
[
"api"
"port"
]
[
"tools"
"uname"
]
[
"tools"
"uuidgen"
]
[
"tools"
"curl"
]
[
"tools"
"gzip"
]
[
"tools"
"languageServer"
]
"wrapper"
];
}

View file

@ -3,8 +3,8 @@
...
}:
lib.nixvim.plugins.mkNeovimPlugin {
name = "codeium-nvim";
packPathName = "codeium.nvim";
name = "windsurf-nvim";
packPathName = "windsurf.nvim";
moduleName = "codeium";
maintainers = with lib.maintainers; [
@ -18,13 +18,10 @@ lib.nixvim.plugins.mkNeovimPlugin {
You are free to configure `dependencies.*.enable` and `dependencies.*.package` to disable or customize this behavior, respectively.
'';
# TODO: added 2024-09-03 remove after 24.11
inherit (import ./deprecations.nix) deprecateExtraOptions optionsRenamedToSettings;
# Register nvim-cmp association
imports = [
{ cmpSourcePlugins.codeium = "codeium-nvim"; }
];
# Register nvim-cmp association
{ cmpSourcePlugins.codeium = "windsurf-nvim"; }
] ++ (import ./deprecations.nix { inherit lib; }).imports;
settingsExample = {
enable_chat = true;

View file

@ -0,0 +1,56 @@
{
lib,
...
}:
{
imports =
# TODO: added 2024-09-03 remove after 24.11
lib.nixvim.deprecation.mkSettingsRenamedOptionModules [ "plugins" "codeium-nvim" ]
[ "plugins" "windsurf-nvim" "settings" ]
[
"configPath"
"binPath"
[
"api"
"host"
]
[
"api"
"port"
]
[
"tools"
"uname"
]
[
"tools"
"uuidgen"
]
[
"tools"
"curl"
]
[
"tools"
"gzip"
]
[
"tools"
"languageServer"
]
"wrapper"
]
# TODO: introduced 2025-04-19
++
lib.nixvim.deprecation.mkSettingsRenamedOptionModules [ "plugins" "codeium-nvim" ]
[ "plugins" "windsurf-nvim" ]
[
"enable"
"package"
"settings"
{
old = "extraOptions";
new = "settings";
}
];
}

View file

@ -1,6 +1,6 @@
{
empty = {
plugins.codeium-nvim = {
plugins.windsurf-nvim = {
enable = true;
settings.enable_cmp_source = false;
};
@ -18,7 +18,7 @@
plugins = {
cmp.enable = true;
codeium-nvim = {
windsurf-nvim = {
enable = true;
settings = {