mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05: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:
committed by
nix-infra-bot
parent
662a7c8dc7
commit
1971ec5b2b
@@ -1,36 +0,0 @@
|
||||
{
|
||||
deprecateExtraOptions = true;
|
||||
optionsRenamedToSettings = [
|
||||
"configPath"
|
||||
"binPath"
|
||||
[
|
||||
"api"
|
||||
"host"
|
||||
]
|
||||
[
|
||||
"api"
|
||||
"port"
|
||||
]
|
||||
[
|
||||
"tools"
|
||||
"uname"
|
||||
]
|
||||
[
|
||||
"tools"
|
||||
"uuidgen"
|
||||
]
|
||||
[
|
||||
"tools"
|
||||
"curl"
|
||||
]
|
||||
[
|
||||
"tools"
|
||||
"gzip"
|
||||
]
|
||||
[
|
||||
"tools"
|
||||
"languageServer"
|
||||
]
|
||||
"wrapper"
|
||||
];
|
||||
}
|
||||
+5
-8
@@ -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;
|
||||
@@ -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";
|
||||
}
|
||||
];
|
||||
}
|
||||
+2
-2
@@ -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 = {
|
||||
Reference in New Issue
Block a user