mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
25 lines
553 B
Nix
25 lines
553 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.plugins.friendly-snippets;
|
|
in {
|
|
meta.maintainers = [maintainers.GaetanLepage];
|
|
|
|
options.plugins.friendly-snippets = {
|
|
enable = mkEnableOption "friendly-snippets";
|
|
|
|
package = helpers.mkPackageOption "friendly-snippets" pkgs.vimPlugins.friendly-snippets;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
extraPlugins = [cfg.package];
|
|
|
|
# Simply add an element to the `fromVscode` list to trigger the import of friendly-snippets
|
|
plugins.luasnip.fromVscode = [{}];
|
|
};
|
|
}
|