1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 15:32:48 +01:00
nixvim/tests/test-sources/plugins/by-name/supermaven/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

63 lines
1.4 KiB
Nix

# We don't run neovim here, as supermaven tries to download `sm-agent`
{
empty = {
test.runNvim = false;
plugins.supermaven.enable = true;
};
defaults = {
test.runNvim = false;
plugins.supermaven = {
enable = true;
settings = {
keymaps = {
accept_suggestion = "<Tab>";
clear_suggestions = "<C-]>";
accept_word = "<C-j>";
};
ignore_filetypes.__empty = { };
color = {
suggestion_color.__raw = "nil";
cterm.__raw = "nil";
};
log_level = "info";
disable_inline_completion = false;
disable_keymaps = false;
condition.__raw = ''
function()
return false
end
'';
};
};
};
example = {
test.runNvim = false;
plugins.supermaven = {
enable = true;
settings = {
keymaps = {
accept_suggestion = "<Tab>";
clear_suggestions = "<C-]>";
accept_word = "<C-j>";
};
ignore_filetypes = [ "cpp" ];
color = {
suggestion_color = "#ffffff";
cterm = 244;
};
log_level = "info";
disable_inline_completion = false;
disable_keymaps = false;
condition.__raw = ''
function()
return false
end
'';
};
};
};
}