From 78fafd18ee9168f9c11b5867de76f6dd6902949d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 23 Sep 2024 20:36:20 +0200 Subject: [PATCH] Update NeoVim VSCode mappings --- .config/nvim/vscode.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.config/nvim/vscode.lua b/.config/nvim/vscode.lua index 0994efe..1658d77 100644 --- a/.config/nvim/vscode.lua +++ b/.config/nvim/vscode.lua @@ -1,5 +1,5 @@ local cmd = vim.cmd -local bind = vim.keymap.set +local map = vim.keymap.set cmd([[ source ~/.vim/init/base.vim @@ -8,7 +8,8 @@ source ~/.vim/init/mappings.vim require("keymaps") -bind('n', 'p', 'call VSCodeNotify("workbench.action.quickOpen")') -bind('n', 'f', 'call VSCodeNotify("workbench.action.findInFiles")') -bind('n', 'b', 'call VSCodeNotify("workbench.action.toggleSidebarVisibility")') -bind('n', 't', 'call VSCodeNotify("workbench.action.togglePanel")') +map({ "n", "v" }, "p", 'call VSCodeNotify("workbench.action.quickOpen")') +map({ "n", "v" }, "f", 'call VSCodeNotify("workbench.action.findInFiles")') +map({ "n", "v" }, "b", 'call VSCodeNotify("workbench.action.toggleSidebarVisibility")') +map({ "n", "v" }, "t", 'call VSCodeNotify("workbench.action.togglePanel")') +map({ "n", "v" }, "ca", "call VSCodeNotify('editor.action.quickFix')")