1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 15:32:48 +01:00
nixvim/plugins/by-name/supermaven/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

38 lines
896 B
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "supermaven";
package = "supermaven-nvim";
moduleName = "supermaven-nvim";
description = "The official Neovim plugin for Supermaven.";
maintainers = [ lib.maintainers.PoCo ];
dependencies = [ "curl" ];
# Register nvim-cmp association
imports = [
{ cmpSourcePlugins.supermaven = "supermaven"; }
];
settingsExample = lib.literalExpression ''
{
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 = lib.nixvim.mkRaw '''
function()
return false
end
''';
}'';
}