+2
-2
README.md
+2
-2
README.md
+14
-2
lua/baredot/commands.lua
+14
-2
lua/baredot/commands.lua
···
37
function Commands.setup(opt)
38
options = opt
39
40
+
vim.api.nvim_create_user_command("Baredot", function(args)
41
+
local cmd = vim.trim(args.args or "")
42
+
if cmd == "toggle" then
43
+
Commands.toggle()
44
+
else
45
+
Commands.info()
46
+
end
47
+
end, {
48
+
desc = "Baredot",
49
+
nargs = "?",
50
+
complete = function()
51
+
return { "info", "toggle" }
52
+
end
53
+
})
54
end
55
56
return Commands