fix(snippets): move snippets configuration to nvf module

This commit is contained in:
Mohammad Rafiq 2025-06-17 13:45:19 +08:00
parent d0714f8bff
commit ad0d5ed0f8
No known key found for this signature in database
4 changed files with 26 additions and 64 deletions

View file

@ -4,5 +4,26 @@
enable = true;
setupOpts.enable_autosnippets = true;
providers = with pkgs.vimPlugins; [ vim-snippets ];
customSnippets.snipmate = {
all = [
{
trigger = "if";
body = "if $1 else $2";
}
];
nix = [
{
trigger = "mkOption";
body = ''
mkOption {
type = $1;
default = $2;
description = $3;
example = $4;
}
'';
}
];
};
};
}