summaryrefslogtreecommitdiff
path: root/common/home/programs/nixvim/plugins/dashboard.nix
blob: 68308da420a51bd2c237fb73e6229c1bca9f3aa5 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{ ... }:
{
  enable = true;
  settings = {
    change_to_vcs_root = true;
    config = {
      footer = [ "" ];

      header = [
        "███╗   ██╗ ███████╗ ██████╗  ██╗   ██╗ ██╗ ███╗   ███╗"
        "████╗  ██║ ██╔════╝██╔═══██╗ ██║   ██║ ██║ ████╗ ████║"
        "██╔██╗ ██║ █████╗  ██║   ██║ ██║   ██║ ██║ ██╔████╔██║"
        "██║╚██╗██║ ██╔══╝  ██║   ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║"
        "██║ ╚████║ ███████╗╚██████╔╝  ╚████╔╝  ██║ ██║ ╚═╝ ██║"
        "╚═╝  ╚═══╝ ╚══════╝ ╚═════╝    ╚═══╝   ╚═╝ ╚═╝     ╚═╝"
      ];

      mru = {
        limit = 10;
      };

      project = {
        enable = true;
      };

      packages.enable = false;

      shortcut = [
        {
          action = {
            __raw = ''
              function(path)
              	vim.cmd('Telescope find_files')
              end
            '';
          };
          desc = "Files";
          group = "Label";
          icon = " ";
          icon_hl = "@variable";
          key = "f";
        }
        {
          action = {
            __raw = ''
              function()
              	vim.cmd('cd ~/global/system/config')
              	vim.cmd('Telescope find_files')
              end
            '';
          };
          icon = "󱄅 ";
          icon_hl = "@variable";
          desc = "System Config";
          group = "Number";
          key = "c";
        }
      ];

      hide = [
        "statusline"
        "tabline"
        "winbar"
      ];
    };
    theme = "hyper";
  };
}