mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
39 lines
890 B
Nix
39 lines
890 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|