Skip to content

Commit

Permalink
set up basic keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
dlants committed Dec 5, 2024
1 parent d801311 commit 9aae28d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/magenta/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ function Sidebar:show_sidebar()

vim.api.nvim_buf_set_lines(self.input_area.bufnr, 0, -1, false, { "Enter text here..." })

vim.keymap.set('n', '<CR>', '<cmd>MagentaSend<CR>', {
buffer = self.input_area.bufnr,
silent = true,
desc = "Send message from Magenta sidebar"
})

return self.input_area
end

Expand Down

0 comments on commit 9aae28d

Please sign in to comment.