mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-06 07:14:31 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
39 lines
932 B
Nix
39 lines
932 B
Nix
{ lib, ... }:
|
|
lib.nixvim.plugins.mkNeovimPlugin {
|
|
name = "supermaven";
|
|
package = "supermaven-nvim";
|
|
moduleName = "supermaven-nvim";
|
|
packPathName = "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
|
|
''';
|
|
}'';
|
|
}
|