neovide: fails to interprets in Macos. I set `neovide_input_macos_alt_is_meta `

In Macos, I set vim.g.neovide_input_macos_alt_is_meta = true, keys works fine except <A-n>.

I don’t know if someone can reproduce it. But other keys like <A-m> and <A-p> are ok.

To Reproduce <A-n> can not be matched.

Expected behavior

Screenshots

https://github.com/neovide/neovide/assets/39361033/19c3ec45-f4a7-46ab-8e6e-50952b6bb603

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: 13.3.1 (a) (22E772610a)
  • Neovide Version 0.10.4
  • Neovim Version 0.9.0

Please run neovide --log and paste the contents of the .log file created in the current directory here:

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 30 (17 by maintainers)

Most upvoted comments

If I remember correctly, the dead keys are delivered using the IME system on the mac. So it’s likely that the ime system handles it completely, and therefore nothing is delivered to Neovide.

You can try disabling IME https://neovide.dev/configuration.html#ime vim.g.neovide_input_ime = false

I suggest adding --clean to the command as well so, otherwise it may in some cases load existing plugins. target/debug/neovide -- --clean -u c.lua

What’s interesting is that <m-n> seems to swallow the next key mapping, so if I do <m-n><m-m> there is no output. same with <m-n><m-o>. <m-m><m-o> works as expected, printing both. Even <m-n>a does not put me in insert mode, but … <m-n>i does! Weird.

I’m on a UK keyboard map here

Yep, the Mac UK keyboard layout has option-n as a “dead key”; it temporarily types a ~, which you can follow up with e.g. a regular “n”, to produce ñ. option-m though produces a single character, µ, so not a dead key.