aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/dash.lua
blob: fd9f03cde7164848737bc0a58ff2961cff4699d0 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
local lazy = require "lazy"
local alpha = require "alpha"

vim.api.nvim_create_autocmd("ColorScheme", {
    callback = function()
        local groups = {
            Red = "#ff928a",
            Orange = "#ff9f6f",
            Yellow = "#ecb256",
            Green = "#8bd294",
            Cyan = "#6dd3c2",
            Blue = "#8bc3fc",
            Purple = "#c4b1f6",
            Pink = "#e5acb4",
        }
        for group, color in pairs(groups) do
            vim.api.nvim_set_hl(0, "Dash" .. group, { fg = color, bold = true })
        end
        local comment = vim.api.nvim_get_hl(0, { name = "Comment" })
        vim.api.nvim_set_hl(0, "DashEmphasis", vim.tbl_deep_extend("keep", comment, { bold = true }))
    end,
})


return {
    layout = {
        {
            type = "padding",
            val = 4,
        },
        {
            type = "text",
            val = {
                [[    ___       ___       ___       ___       ___       ___       ___       ___    ]],
                [[   /\  \     /\  \     /\  \     /\  \     /\__\     /\  \     /\  \     /\  \   ]],
                [[  /::\  \   /::\  \   _\:\  \   /::\  \   /::L_L_   _\:\  \    \:\  \   /::\  \  ]],
                [[ /::\:\__\ /::\:\__\ /\/::\__\ /\:\:\__\ /:/L:\__\ /\/::\__\   /::\__\ /::\:\__\ ]],
                [[ \/\::/  / \;:::/  / \::/\/__/ \:\:\/__/ \/_/:/  / \::/\/__/  /:/\/__/ \:\:\/  / ]],
                [[    \/__/   |:\/__/   \:\__\    \::/  /    /:/  /   \:\__\    \/__/     \:\/  /  ]],
                [[             \|__|     \/__/     \/__/     \/__/     \/__/               \/__/   ]],
                [[                                                                                 ]],
            },
            opts = {
                position = "center",
                hl = {
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                    {
                        { "DashRed", 1, 10 },
                        { "DashOrange", 10, 20 },
                        { "DashYellow", 20, 30 },
                        { "DashGreen", 30, 40 },
                        { "DashCyan", 40, 50 },
                        { "DashBlue", 50, 60 },
                        { "DashPurple", 60, 70 },
                        { "DashPink", 70, 80 },
                    },
                },
            },
        },
        {
            type = "padding",
            val = 2,
        },
        {
            type = "group",
            val = {
                {
                    type = "text",
                    val = function() return lazy.stats().loaded .. " plugin" .. (lazy.stats().loaded == 1 and "" or "s") .. " loaded" end,
                    opts = {
                        position = "center",
                    }
                },
                {
                    type = "text",
                    val = "prismite | a theme made by delta___",
                    opts = {
                        position = "center",
                        hl = {
                            { "Comment", 0, 27 },
                            { "DashEmphasis", 27, 35 }
                        }
                    }
                }
            },
        },
    },
}