Vscode-neovim: Integration with VSCode settings and keybindings + leader key

Created on 4 Mar 2020  路  1Comment  路  Source: asvetliakov/vscode-neovim

Great extension @asvetliakov. For the past two years I have used the VSCodeVim plugin and now I am trying to adapt some of the commands to VSCode-Neovim extensions.

  1. This is how the Zen Mod activation command looks like in the VSCodeVim plugin, how should it be defined for VSCode-Neovim?
 {
      "before": [
        "<leader>",
        "t",
        "z"
      ],
      "after": [],
      "commands": [
        {
          "command": "workbench.action.toggleZenMode",
          "args": []
        }
      ]
    }
  1. I wonder if pressing a leader key show an indicator (text/symbol) in the VSCode status bar?
question

Most helpful comment

Define mappings (except insert-mode) in Nvim config (init.vim). https://github.com/asvetliakov/vscode-neovim#invoking-vscode-actions-from-neovim

if exists('g:vscode')
  nnoremap <silent> <leader>tz <Cmd>call VSCodeCall('workbench.action.toggleZenMode')<CR>
endif

>All comments

Define mappings (except insert-mode) in Nvim config (init.vim). https://github.com/asvetliakov/vscode-neovim#invoking-vscode-actions-from-neovim

if exists('g:vscode')
  nnoremap <silent> <leader>tz <Cmd>call VSCodeCall('workbench.action.toggleZenMode')<CR>
endif
Was this page helpful?
0 / 5 - 0 ratings

Related issues

asvetliakov picture asvetliakov  路  5Comments

Liquidmantis picture Liquidmantis  路  3Comments

hholst80 picture hholst80  路  3Comments

erlais picture erlais  路  3Comments

Shatur95 picture Shatur95  路  4Comments