[[ターミナルジョブモード]]のkeymapで`ESC`に`<C-\><C-n>`を割り当てる。
```lua
{
config = function()
require("toggleterm").setup({})
vim.keymap.set("t", "<ESC>", [[<C-\><C-n>]], { silent = true })
end,
}
```
## 参考
- [akinsho/toggleterm\.nvim: A neovim lua plugin to help easily manage multiple terminal windows](https://github.com/akinsho/toggleterm.nvim?tab=readme-ov-file#terminal-window-mappings)