mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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
|
in
|
||||||
lib.nixvim.plugins.mkVimPlugin {
|
lib.nixvim.plugins.mkVimPlugin {
|
||||||
name = "codeium-vim";
|
name = "windsurf-vim";
|
||||||
packPathName = "codeium.vim";
|
packPathName = "windsurf.vim";
|
||||||
globalPrefix = "codeium_";
|
globalPrefix = "codeium_";
|
||||||
|
|
||||||
maintainers = [ maintainers.GaetanLepage ];
|
maintainers = [ maintainers.GaetanLepage ];
|
||||||
|
|
||||||
# TODO introduced 2024-02-19: remove 2024-03-19
|
# TODO: introduced 2024-02-19: remove 2024-03-19
|
||||||
deprecateExtraConfig = true;
|
inherit ((import ./deprecations.nix { inherit lib; })) imports;
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"bin"
|
|
||||||
"filetypes"
|
|
||||||
"manual"
|
|
||||||
"noMapTab"
|
|
||||||
"idleDelay"
|
|
||||||
"render"
|
|
||||||
"tabFallback"
|
|
||||||
"disableBindings"
|
|
||||||
];
|
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
bin = mkOption {
|
bin = mkOption {
|
||||||
|
@ -114,7 +104,7 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
plugins.codeium-vim.settings.enabled = true;
|
plugins.windsurf-vim.settings.enabled = true;
|
||||||
|
|
||||||
keymaps =
|
keymaps =
|
||||||
let
|
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.
|
# For some reason, nvim hangs when using codeium-vim. After checking, it doesn't look like a bug though.
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
plugins.codeium-vim.enable = true;
|
plugins.windsurf-vim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
example = {
|
example = {
|
||||||
# For some reason, nvim hangs when using codeium-vim. After checking, it doesn't look like a bug though.
|
# For some reason, nvim hangs when using codeium-vim. After checking, it doesn't look like a bug though.
|
||||||
test.runNvim = false;
|
test.runNvim = false;
|
||||||
|
|
||||||
plugins.codeium-vim = {
|
plugins.windsurf-vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
Loading…
Add table
Add a link
Reference in a new issue