plugins/supermaven: init

Co-authored-by: Po Co <polniolino@gmail.com>
This commit is contained in:
Gaetan Lepage
2025-04-15 22:40:13 +01:00
committed by Matt Sturgeon
co-authored by Po Co
parent f8ed424711
commit 0bdc32e331
3 changed files with 105 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "supermaven";
package = "supermaven-nvim";
moduleName = "supermaven-nvim";
packPathName = "supermaven-nvim";
maintainers = [ lib.maintainers.PoCo ];
# Register nvim-cmp association
imports = [
{ cmpSourcePlugins.supermaven = "supermaven"; }
];
extraConfig = {
dependencies.curl.enable = lib.mkDefault true;
};
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
''';
}'';
}