Skip to content

Commit bbb518f

Browse files
committed
fix(command): :Copilot without params
1 parent 79efe15 commit bbb518f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/copilot.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ vim.api.nvim_create_user_command("Copilot", function(opts)
99
local params = vim.split(opts.args, "%s+", { trimempty = true })
1010

1111
local mod_name, action_name = params[1], params[2]
12+
if not mod_name then
13+
mod_name = "status"
14+
end
1215

1316
local u = require("copilot.util")
1417

0 commit comments

Comments
 (0)