mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 14:45:26 +02:00
plugins/wtf: adapt to upstream changes
This commit is contained in:
parent
2dbe5199ed
commit
0e2af088f1
2 changed files with 12 additions and 5 deletions
|
@ -39,6 +39,12 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [ "plugins" "wtf" "context" ] ''
|
||||
context is no longer supported, please remove it from your config
|
||||
'')
|
||||
];
|
||||
|
||||
options = {
|
||||
plugins.wtf = lib.nixvim.plugins.neovim.extraOptionsOptions // {
|
||||
enable = mkEnableOption "wtf.nvim";
|
||||
|
@ -83,8 +89,6 @@ in
|
|||
|
||||
openaiModelId = helpers.defaultNullOpts.mkStr "gpt-3.5-turbo" "ChatGPT Model.";
|
||||
|
||||
context = helpers.defaultNullOpts.mkBool true "Send code as well as diagnostics.";
|
||||
|
||||
language = helpers.defaultNullOpts.mkStr "english" ''
|
||||
Set your preferred language for the response.
|
||||
'';
|
||||
|
@ -117,8 +121,12 @@ in
|
|||
{
|
||||
popup_type = popupType;
|
||||
openai_api_key = openaiApiKey;
|
||||
openai_model_id = openaiModelId;
|
||||
inherit context language;
|
||||
providers = {
|
||||
openai = {
|
||||
model_id = openaiModelId;
|
||||
};
|
||||
};
|
||||
inherit language;
|
||||
additional_instructions = additionalInstructions;
|
||||
search_engine = searchEngine;
|
||||
hooks = {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
popupType = "popup";
|
||||
openaiApiKey = null;
|
||||
openaiModelId = "gpt-3.5-turbo";
|
||||
context = true;
|
||||
language = "english";
|
||||
additionalInstructions = "Hello world !";
|
||||
searchEngine = "google";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue