We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cdb6ef commit 32f74a0Copy full SHA for 32f74a0
1 file changed
lua/bars/utils.lua
@@ -91,25 +91,6 @@ utils.set_hl = function (hl)
91
end
92
93
94
-utils.constant = function (val)
95
- return setmetatable({}, {
96
- __index = function ()
97
- return val;
98
- end,
99
- __newindex = function () end,
100
-
101
- __metatable = false
102
- });
103
-end
104
105
-utils.get_const = function (val)
106
- if type(val) ~= "table" then
107
108
- else
109
- return val.value;
110
- end
111
112
113
--- Creates a statusline/statuscolumn/winbar/table segment.
114
---@param text string | nil
115
---@param hl string | nil
0 commit comments