mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-21 17:59:48 +01:00
feat: apply new module format to snippet plugins
This commit is contained in:
parent
97899667db
commit
d5082e5ef2
4 changed files with 21 additions and 11 deletions
|
@ -1,10 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
_: {
|
||||
imports = [
|
||||
./vsnip.nix
|
||||
./vsnip
|
||||
];
|
||||
}
|
||||
|
|
14
modules/snippets/vsnip/config.nix
Normal file
14
modules/snippets/vsnip/config.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with builtins; let
|
||||
cfg = config.vim.snippets.vsnip;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = ["vim-vsnip"];
|
||||
};
|
||||
}
|
5
modules/snippets/vsnip/default.nix
Normal file
5
modules/snippets/vsnip/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./vsnip.nix
|
||||
];
|
||||
}
|
|
@ -11,8 +11,4 @@ in {
|
|||
options.vim.snippets.vsnip = {
|
||||
enable = mkEnableOption "Enable vim-vsnip";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = ["vim-vsnip"];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue