mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +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 {
|
||||
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;
|
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 = {
|
||||
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 = {
|
Loading…
Add table
Add a link
Reference in a new issue