1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 23:42:47 +01:00
nixvim/plugins/by-name/wtf/deprecations.nix
2025-10-11 16:54:26 +00:00

55 lines
1,020 B
Nix

lib: {
imports =
let
basePluginPath = [
"plugins"
"wtf"
];
in
[
(lib.mkRemovedOptionModule
(
basePluginPath
++ [
"keymaps"
]
)
''
Use nixvim's top-level `keymaps` option to manually declare your 'wtf-nvim' keymaps.
''
)
(lib.mkRemovedOptionModule (basePluginPath ++ [ "context" ]) ''
context is no longer supported, please remove it from your config.
'')
];
deprecateExtraOptions = true;
optionsRenamedToSettings = [
{
old = "openaiModelId";
new = [
"providers"
"openai"
"model_id"
];
}
{
old = "openaiApiKey";
new = [
"providers"
"openai"
"api_key"
];
}
]
++ map (lib.splitString ".") [
"popupType"
"language"
"additionalInstructions"
"searchEngine"
"hooks.requestStarted"
"hooks.requestFinished"
"winhighlight"
];
}