diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-28 15:17:50 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-28 15:17:50 +0200 |
| commit | ac7f8ef19b645af5afe8f5f8044868a0cf25a620 (patch) | |
| tree | 24096bb105e6a74622418a61a792388f665cf223 /common/home/programs/nixvim/plugins/default.nix | |
| parent | fbe7799a38a2dfe139261bb3bdeca6fa96d05145 (diff) | |
nixvim: refactor
Diffstat (limited to 'common/home/programs/nixvim/plugins/default.nix')
| -rw-r--r-- | common/home/programs/nixvim/plugins/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix new file mode 100644 index 0000000..6005c57 --- /dev/null +++ b/common/home/programs/nixvim/plugins/default.nix @@ -0,0 +1,27 @@ +{ pkgs, ... }: +let + plugins = [ + "web-devicons" + "dashboard" + "nvim-tree" + "telescope" + "lualine" + "treesitter" + "luasnip" + "friendly-snippets" + "cmp" + "lsp" + ]; +in +{ + plugins = builtins.listToAttrs ( + map (n: { + name = n; + value = + if builtins.pathExists ./${n}.nix then + (import ./${n}.nix { inherit pkgs; }) + else + { enable = true; }; + }) plugins + ); +} |