Skip to content

Commit 9ee60b5

Browse files
authored
fix(opencode-nvim): Fix keybinding commands (#1731)
1 parent b17ae49 commit 9ee60b5

File tree

1 file changed

+3
-3
lines changed
  • lua/astrocommunity/ai/opencode-nvim

1 file changed

+3
-3
lines changed

lua/astrocommunity/ai/opencode-nvim/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ return {
3131
desc = "Explain this code",
3232
}
3333
maps.n[prefix .. "n"] = {
34-
function() require("opencode").command "session_new" end,
34+
function() require("opencode").command "session.new" end,
3535
desc = "New session",
3636
}
3737
maps.n[prefix .. "s"] = {
3838
function() require("opencode").select() end,
3939
desc = "Select prompt",
4040
}
4141
maps.n["<S-C-u>"] = {
42-
function() require("opencode").command "messages_half_page_up" end,
42+
function() require("opencode").command "session.half.page.up" end,
4343
desc = "Messages half page up",
4444
}
4545
maps.n["<S-C-d>"] = {
46-
function() require("opencode").command "messages_half_page_down" end,
46+
function() require("opencode").command "session.half.page.down" end,
4747
desc = "Messages half page down",
4848
}
4949

0 commit comments

Comments
 (0)