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')")