mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/wtf: init
This commit is contained in:
parent
b3fb1c4c81
commit
309e5644fc
3 changed files with 164 additions and 0 deletions
39
tests/test-sources/plugins/lsp/wtf.nix
Normal file
39
tests/test-sources/plugins/lsp/wtf.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue