akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

Add string array support to `open_mapping` setting. #557

Closed sbkkalex closed 3 months ago

sbkkalex commented 4 months ago

I sometime use a Japanese keyboard, and it don't have the \ key, instead it have a ¥ key.

It would be helpful for people like me who what to bind multiple keys for toggle terminal. So I modified the open_mapping setting to also take an array of string as parameter.

sbkkalex commented 3 months ago

@akinsho Thank you for your advise. I extracted the logic to utils.