zbirenbaum / nvterm

NvChad's Official Terminal Plugin ( Unmaintained but still usable and stable), wait for v3.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<A-h> toggle mapping doesn't work on MacOS

aceamarco opened this issue · comments

The option key on my Mac outputs special characters when I try using <A-h>. I've been looking online and have tried everything from adding set macmeta in my init.vim file to trying to make my own custom mapping in mappings.lua. Has anyone ran into this issue before?

Here's what my mappings.lua looks like:

---@type MappingsTable
local M = {}

M.general = {
  n = {
    [";"] = { ":", "enter command mode", opts = { nowait = true } },
  },
}

M.nvterm = {
  t = {
    ["<A-h>"] = { "<C-h>"}
  }
}

-- more keybinds!

return M

hi @aceamarco A is alt key, probably your system is using it, are you using iterm?

I'm experiencing the same using Alacritty Version 0.11.0-rc2 (1)

If anyone is on iTerm2, I had to switch the Option key to Esc+ to get the Alt commands working correctly. With Alacritty, looks like you might be able to add a setting to your alacritty.yml file to achieve the same, but I haven't tested it.

Screenshot 2023-04-21 at 11 00 31 AM

yes this isnt related to nvchad. If you cant use alt on your system then just disable those keys in in your custom mappings and assign new keys to those nvterm mappings