akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.36k stars 59 forks source link

set keymap with `alt` key as prefix does not work #438

Closed liaohui5 closed 1 year ago

liaohui5 commented 1 year ago

question intro

<M-*> does not work

environment

cnofig files

# load lua config
Ginitvim = '''
lua << EOF
require("goneovim")
EOF
'''
local keymap = vim.api.nvim_set_keymap;
local option = {
  noremap = true,
}

-- working
keymap("n", "<C-t>", "<cmd>lua print('111')<CR>", option);

-- not woring
keymap("n", "<M-t>", "<cmd>lua print('222')<CR>", option);

Do you need more information?

akiyosi commented 1 year ago

Hi, Thanks for the issue report. Goneovim does not allow M-mapping by default in Mac OS. (Note that the Alt key prefix is A- in Goneovim.) To use it, you must set Macmeta to true in settings.toml. In a launched instance, the settings can be controlled with GuiMacmeta [0|1].

akiyosi commented 1 year ago

I have looked into a few past cases, and it seems that controlling at the MacOS configuration level is also effective.

https://github.com/equalsraf/neovim-qt/issues/579#issuecomment-666915803

liaohui5 commented 1 year ago

Hi, Thanks for the issue report. Goneovim does not allow M-mapping by default in Mac OS. (Note that the Alt key prefix is A- in Goneovim.) To use it, you must set Macmeta to true in settings.toml. In a launched instance, the settings can be controlled with GuiMacmeta [0|1].

Thank you very much!