mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
662a7c8dc7
commit
1971ec5b2b
4 changed files with 63 additions and 46 deletions
|
@ -1,36 +0,0 @@
|
||||||
{
|
|
||||||
deprecateExtraOptions = true;
|
|
||||||
optionsRenamedToSettings = [
|
|
||||||
"configPath"
|
|
||||||
"binPath"
|
|
||||||
[
|
|
||||||
"api"
|
|
||||||
"host"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"api"
|
|
||||||
"port"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"tools"
|
|
||||||
"uname"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"tools"
|
|
||||||
"uuidgen"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"tools"
|
|
||||||
"curl"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"tools"
|
|
||||||
"gzip"
|
|
||||||
]
|
|
||||||
[
|
|
||||||
"tools"
|
|
||||||
"languageServer"
|
|
||||||
]
|
|
||||||
"wrapper"
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -3,8 +3,8 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
lib.nixvim.plugins.mkNeovimPlugin {
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
name = "codeium-nvim";
|
name = "windsurf-nvim";
|
||||||
packPathName = "codeium.nvim";
|
packPathName = "windsurf.nvim";
|
||||||
moduleName = "codeium";
|
moduleName = "codeium";
|
||||||
|
|
||||||
maintainers = with lib.maintainers; [
|
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.
|
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 = [
|
imports = [
|
||||||
{ cmpSourcePlugins.codeium = "codeium-nvim"; }
|
# Register nvim-cmp association
|
||||||
];
|
{ cmpSourcePlugins.codeium = "windsurf-nvim"; }
|
||||||
|
] ++ (import ./deprecations.nix { inherit lib; }).imports;
|
||||||
|
|
||||||
settingsExample = {
|
settingsExample = {
|
||||||
enable_chat = true;
|
enable_chat = true;
|
56
plugins/by-name/windsurf-nvim/deprecations.nix
Normal file
56
plugins/by-name/windsurf-nvim/deprecations.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
empty = {
|
empty = {
|
||||||
plugins.codeium-nvim = {
|
plugins.windsurf-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.enable_cmp_source = false;
|
settings.enable_cmp_source = false;
|
||||||
};
|
};
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
plugins = {
|
plugins = {
|
||||||
cmp.enable = true;
|
cmp.enable = true;
|
||||||
|
|
||||||
codeium-nvim = {
|
windsurf-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
Loading…
Add table
Add a link
Reference in a new issue