nix-community.nixvim/tests/test-sources/plugins/by-name/copilot-lua/default.nix

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

148 lines
3.2 KiB
Nix
Raw Normal View History

2023-06-22 10:14:32 +02:00
{
empty = {
plugins.copilot-lua.enable = true;
};
nvim-cmp = {
plugins = {
copilot-lua = {
enable = true;
settings = {
panel.enabled = false;
suggestion.enabled = false;
};
2023-06-22 10:14:32 +02:00
};
copilot-cmp.settings = {
2023-06-22 10:14:32 +02:00
event = [
"InsertEnter"
"LspAttach"
];
fix_pairs = true;
2023-06-22 10:14:32 +02:00
};
cmp = {
2023-06-22 10:14:32 +02:00
enable = true;
settings.sources = [ { name = "copilot"; } ];
2023-06-22 10:14:32 +02:00
};
};
};
default = {
plugins.copilot-lua = {
enable = true;
settings = {
panel = {
enabled = true;
auto_refresh = false;
keymap = {
jump_prev = "[[";
jump_next = "]]";
accept = "<CR>";
refresh = "gr";
open = "<M-CR>";
};
layout = {
position = "bottom";
ratio = 0.4;
};
2023-06-22 10:14:32 +02:00
};
suggestion = {
enabled = true;
auto_trigger = false;
hide_during_completion = true;
debounce = 75;
keymap = {
accept = "<M-l>";
accept_word = false;
accept_line = false;
next = "<M-]>";
prev = "<M-[>";
dismiss = "<C-]>";
};
2023-06-22 10:14:32 +02:00
};
filetypes = {
yaml = false;
markdown = false;
help = false;
gitcommit = false;
gitrebase = false;
hgcommit = false;
svn = false;
cvs = false;
"." = false;
};
server_opts_overrides = {
trace = "verbose";
settings = {
advanced = {
listCount = 10; # number of completions for panel
inlineSuggestCount = 3; # number of completions for getCompletions
};
};
2023-06-22 10:14:32 +02:00
};
};
};
};
examples = {
plugins.copilot-lua = {
enable = true;
settings = {
panel = {
enabled = true;
auto_refresh = true;
keymap = {
jump_prev = "[[";
jump_next = "]]";
accept = "<CR>";
refresh = "gr";
open = "<M-CR>";
};
layout = {
position = "top";
ratio = 0.5;
};
};
suggestion = {
enabled = true;
auto_trigger = false;
hide_during_completion = false;
debounce = 90;
keymap = {
accept = "<M-l>";
accept_word = false;
accept_line = false;
next = "<M-]>";
prev = "<M-[>";
dismiss = "<C-]>";
};
};
filetypes = {
yaml = true;
markdown = true;
help = true;
gitcommit = true;
gitrebase = true;
hgcommit = true;
svn = true;
cvs = true;
"." = true;
};
server_opts_overrides = {
trace = "verbose";
settings = {
advanced = {
listCount = 10; # number of completions for panel
inlineSuggestCount = 3; # number of completions for getCompletions
};
2023-06-22 10:14:32 +02:00
};
};
};
};
};
}