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