mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 09:05:55 +00:00
modules: start breaking down core modules; simplify tree structure
This commit is contained in:
parent
4703ed7731
commit
370913e827
242 changed files with 178 additions and 124 deletions
5
modules/plugins/snippets/default.nix
Normal file
5
modules/plugins/snippets/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./vsnip
|
||||
];
|
||||
}
|
||||
13
modules/plugins/snippets/vsnip/config.nix
Normal file
13
modules/plugins/snippets/vsnip/config.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cfg = config.vim.snippets.vsnip;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = ["vim-vsnip"];
|
||||
};
|
||||
}
|
||||
5
modules/plugins/snippets/vsnip/default.nix
Normal file
5
modules/plugins/snippets/vsnip/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./vsnip.nix
|
||||
];
|
||||
}
|
||||
7
modules/plugins/snippets/vsnip/vsnip.nix
Normal file
7
modules/plugins/snippets/vsnip/vsnip.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
in {
|
||||
options.vim.snippets.vsnip = {
|
||||
enable = mkEnableOption "vim-vsnip: snippet LSP/VSCode's format";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue