Skip to content

Commit b4baa6d

Browse files
committed
chore: Added test command
1 parent 900bc9d commit b4baa6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugin/bars.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--- Load all the global functions.
22
require("bars.global");
3+
local bars = require("bars")
34

45
---|fS "Cache default values."
56

@@ -153,3 +154,10 @@ vim.api.nvim_create_autocmd({ "TabNew" }, {
153154
---|fE
154155
end
155156
});
157+
158+
vim.api.nvim_create_user_command("Bars", function ()
159+
bars.actions.Toggle();
160+
end, {
161+
desc = "User command for bars.nvim"
162+
});
163+

0 commit comments

Comments
 (0)