Skip to content

Commit

Permalink
Better mappings for gp.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
primeapple committed Oct 11, 2024
1 parent 9fc9841 commit 99ff273
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .config/nvim/lua/plugins/gp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ return {
-- Chat commands
vim.keymap.set('n', 'gac', '<cmd>GpChatNew<cr>', keymapOptions('New Chat'))
vim.keymap.set('n', 'gaC', '<cmd>GpChatNew vsplit<cr>', keymapOptions('New Chat vsplit'))
vim.keymap.set('n', 'gat', '<cmd>GpChatToggle<cr>', keymapOptions('Toggle Chat'))
vim.keymap.set('n', 'gaa', '<cmd>GpChatToggle<cr>', keymapOptions('Toggle Chat'))
vim.keymap.set('n', 'gaA', '<cmd>GpChatToggle popup<cr>', keymapOptions('Toggle Chat'))
vim.keymap.set('n', 'gaf', '<cmd>GpChatFinder<cr>', keymapOptions('Chat Finder'))

vim.keymap.set('v', 'gac', ":<C-u>'<,'>GpChatNew<cr>", keymapOptions('Visual Chat New'))
vim.keymap.set('v', 'gaC', ":<C-u>'<,'>GpChatNew split<cr>", keymapOptions('Visual Chat New split'))
vim.keymap.set('v', 'gaa', ":<C-u>'<,'>GpChatToggle<cr>", keymapOptions('Visual Toggle Chat'))
vim.keymap.set('v', 'gaA', ":<C-u>'<,'>GpChatToggle popup<cr>", keymapOptions('Visual Toggle Chat'))
vim.keymap.set('v', 'gap', ":<C-u>'<,'>GpChatPaste<cr>", keymapOptions('Visual Chat Paste'))
vim.keymap.set('v', 'gat', ":<C-u>'<,'>GpChatToggle<cr>", keymapOptions('Visual Toggle Chat'))
end,
}

0 comments on commit 99ff273

Please sign in to comment.