potamides / pantran.nvim

Use your favorite machine translation engines without having to leave your favorite editor.
MIT License
289 stars 2 forks source link

default insert mode when open pantran #10

Closed Mr-LLLLL closed 1 year ago

Mr-LLLLL commented 1 year ago

sometimes, we prefer to use pantran translate text, if when open pantran, auto enter insert mode not normal mode. if i want translate buffer's text, i prefer visualize text and :Pantran is work better

doongjohn commented 1 year ago

this worked for me

vim.api.nvim_set_keymap('n', 'your mapping', '<cmd>Pantran<cr>i', { noremap = true })
Mr-LLLLL commented 1 year ago

ohhhh, it's usefull for me, thank you