summaryrefslogtreecommitdiff
path: root/lua/bee/plugins/ui.lua
blob: daffd1339bf5a7779e963ce8d90c12383128c122 (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
return {
    {
        "lualine.nvim",
        event = "DeferredUIEnter",
        auto_enable = true,
        after = function(_)
            require("lualine").setup({
                options = {
                    component_separators = { left = "|", right = "|" },
                    section_separators = {},
                },
                sections = {
                    -- lualine_a = {
                    --     {
                    --         "mode",
                    --         fmt = function(mode)
                    --             return ({
                    --                 ["NORMAL"] = "っ( ' ᵕ ' )っ",
                    --                 ["O-PENDING"] = "っ( º _ º )っ",
                    --                 ["INSERT"] = "っ(>‿<)っ✎",
                    --                 ["VISUAL"] = "っ(⊙‿⊙)っ",
                    --                 ["V-LINE"] = "っ(ò_ó)っ¤=[]::>",
                    --                 ["V-BLOCK"] = "っ[ •̀ ⌂ •́ ]っ",
                    --                 ["REPLACE"] = "っ(  O  )っ",
                    --                 ["V-REPLACE"] = "っ[  O  ]っ",
                    --                 ["COMMAND"] = "っ(ง •̀_•́)ง",
                    --                 ["TERMINAL"] = "っ( ͡° ͜ʖ ͡°)っ",
                    --                 ["EX"] = "っ( ͡ಠ ͜ʖ ͡ಠ)ง",
                    --                 ["SHELL"] = "っ(©_©)っ",
                    --                 ["MORE"] = "っ(°-° )っ",
                    --                 ["CONFIRM"] = "っ( 0_0)?",
                    --
                    --                 -- ["SELECT"] = "っ(づ。◕‿‿◕。)づ",
                    --                 -- ["S-LINE"] = "っ(づ。◕‿‿◕。)づ¤",
                    --                 -- ["S-BLOCK"] = "っ[づ。◕‿‿◕。]づ",
                    --             })[mode] or mode
                    --         end,
                    --     },
                    -- },
                    lualine_c = {
                        {
                            "filename",
                            path = 1,
                        },
                    },
                },
                inactive_sections = {
                    lualine_a = { "filename" },
                    lualine_b = {},
                    lualine_c = {},
                    lualine_x = {},
                    lualine_y = {},
                    lualine_z = { "location" },
                },
            })
        end,
    },
    {
        "blink.indent",
        auto_enable = true,
        event = "DeferredUIEnter",
        before = function()
            vim.api.nvim_create_autocmd("FileType", {
                pattern = {
                    "markdown",
                    "nix",
                },
                callback = function(args)
                    vim.b[args.buf].indent_guide = false
                end,
            })
        end,
        after = function(_)
            require("blink.indent").setup({
                static = {
                    enabled = true,
                    char = "│",
                    whitespace_char = nil,
                    priority = 1,
                    highlights = { "BlinkIndent" },
                },
                scope = {
                    enabled = true,
                    indent_at_cursor = true,
                    char = "│",
                    priority = 1000,
                    highlights = { "BlinkIndentScope" },
                },
            })
        end,
    },
    {
        "mini.indentscope",
        auto_enable = true,
        event = "DeferredUIEnter",
        after = function(_)
            require("mini.indentscope").setup({
                draw = {
                    delay = 200,
                },
            })
        end,
    },
}