mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/snippets: move to by-name
This commit is contained in:
parent
2a91b89445
commit
82e7d153e4
7 changed files with 0 additions and 4 deletions
32
plugins/by-name/friendly-snippets/default.nix
Normal file
32
plugins/by-name/friendly-snippets/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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 = lib.mkPackageOption pkgs "friendly-snippets" {
|
||||
default = [
|
||||
"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 = [ { } ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue