plugins/wtf: init

This commit is contained in:
Gaetan Lepage 2023-12-15 14:00:55 +01:00 committed by Gaétan Lepage
parent b3fb1c4c81
commit 309e5644fc
3 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{
empty = {
plugins.wtf.enable = true;
};
example = {
plugins.wtf = {
enable = true;
keymaps = {
ai = "gw";
search = {
mode = ["n" "x"];
options.desc = "Search diagnostic with Google";
};
};
popupType = "popup";
openaiApiKey = null;
openaiModelId = "gpt-3.5-turbo";
context = true;
language = "english";
additionalInstructions = "Hello world !";
searchEngine = "google";
hooks = {
requestStarted = ''
function()
vim.cmd("hi StatusLine ctermbg=NONE ctermfg=yellow")
end
'';
requestFinished = ''
vim.schedule_wrap(function()
vim.cmd("hi StatusLine ctermbg=NONE ctermfg=NONE")
end)
'';
};
winhighlight = "Normal:Normal,FloatBorder:FloatBorder";
};
};
}