plugins/windsurf-vim: rename codeium-vim

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:51:49 -05:00 committed by nix-infra-bot
parent 1971ec5b2b
commit 7f4efe62e0
3 changed files with 41 additions and 17 deletions

View file

@ -35,24 +35,14 @@ let
};
in
lib.nixvim.plugins.mkVimPlugin {
name = "codeium-vim";
packPathName = "codeium.vim";
name = "windsurf-vim";
packPathName = "windsurf.vim";
globalPrefix = "codeium_";
maintainers = [ maintainers.GaetanLepage ];
# TODO introduced 2024-02-19: remove 2024-03-19
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"bin"
"filetypes"
"manual"
"noMapTab"
"idleDelay"
"render"
"tabFallback"
"disableBindings"
];
# TODO: introduced 2024-02-19: remove 2024-03-19
inherit ((import ./deprecations.nix { inherit lib; })) imports;
settingsOptions = {
bin = mkOption {
@ -114,7 +104,7 @@ lib.nixvim.plugins.mkVimPlugin {
};
extraConfig = cfg: {
plugins.codeium-vim.settings.enabled = true;
plugins.windsurf-vim.settings.enabled = true;
keymaps =
let

View file

@ -0,0 +1,34 @@
{
lib,
...
}:
{
imports =
# TODO: introduced 2024-02-19: remove 2024-03-19
lib.nixvim.deprecation.mkSettingsRenamedOptionModules [ "plugins" "codeium-vim" ]
[ "plugins" "windsurf-vim" "settings" ]
[
"bin"
"filetypes"
"manual"
"noMapTab"
"idleDelay"
"render"
"tabFallback"
"disableBindings"
]
# TODO: introduced 2025-04-19
++
lib.nixvim.deprecation.mkSettingsRenamedOptionModules [ "plugins" "codeium-vim" ]
[ "plugins" "windsurf-vim" ]
[
"enable"
"package"
"settings"
"keymaps"
{
old = "extraConfig";
new = "settings";
}
];
}

View file

@ -3,14 +3,14 @@
# For some reason, nvim hangs when using codeium-vim. After checking, it doesn't look like a bug though.
test.runNvim = false;
plugins.codeium-vim.enable = true;
plugins.windsurf-vim.enable = true;
};
example = {
# For some reason, nvim hangs when using codeium-vim. After checking, it doesn't look like a bug though.
test.runNvim = false;
plugins.codeium-vim = {
plugins.windsurf-vim = {
enable = true;
keymaps = {