summaryrefslogtreecommitdiff
path: root/common/home/programs/nixvim/plugins/default.nix
blob: 6005c578994f0571ecf4ec8930f641db789a3437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
  );
}