mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
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:
parent
1971ec5b2b
commit
7f4efe62e0
3 changed files with 41 additions and 17 deletions
|
@ -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
|
34
plugins/by-name/windsurf-vim/deprecations.nix
Normal file
34
plugins/by-name/windsurf-vim/deprecations.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
|
@ -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 = {
|
Loading…
Add table
Add a link
Reference in a new issue