How to activate keybindings from neovim in vscode?

↘锁芯ラ 提交于 2020-07-23 06:14:07

问题


According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json:

[
    {
        "command": "vscode-neovim.compositeEscape2",
        "key": "k",
        "when": "neovim.mode == insert",
        "args": "k"
    }
]

However, after saving and restarting the vs, the escape is still not triggered when jk is pressed. Why is it?


回答1:


First make sure you have neovim installed then add the following to your keybindings.json:

{
    "command": "vscode-neovim.compositeEscape1",
    "key": "j",
    "when": "neovim.mode == insert",
    "args": "j"
},
{
    "command": "vscode-neovim.compositeEscape2",
    "key": "k",
    "when": "neovim.mode == insert",
    "args": "k"
}


来源:https://stackoverflow.com/questions/62727830/how-to-activate-keybindings-from-neovim-in-vscode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!