nix-community.nixvim/tests/test-sources/plugins/lsp/wtf.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
926 B
Nix
Raw Normal View History

2023-12-15 14:00:55 +01:00
{
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";
};
};
}