Update NeoVim VSCode mappings

master
Hektor Misplon 2024-09-23 20:36:20 +02:00
parent ea4bb90bab
commit 78fafd18ee
Signed by: hektor
GPG Key ID: 5151AF79E723F21C
1 changed files with 6 additions and 5 deletions

View File

@ -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', '<leader>p', '<cmd>call VSCodeNotify("workbench.action.quickOpen")<cr>')
bind('n', '<leader>f', '<cmd>call VSCodeNotify("workbench.action.findInFiles")<cr>')
bind('n', '<leader>b', '<cmd>call VSCodeNotify("workbench.action.toggleSidebarVisibility")<cr>')
bind('n', '<leader>t', '<cmd>call VSCodeNotify("workbench.action.togglePanel")<cr>')
map({ "n", "v" }, "<leader>p", '<cmd>call VSCodeNotify("workbench.action.quickOpen")<cr>')
map({ "n", "v" }, "<leader>f", '<cmd>call VSCodeNotify("workbench.action.findInFiles")<cr>')
map({ "n", "v" }, "<leader>b", '<cmd>call VSCodeNotify("workbench.action.toggleSidebarVisibility")<cr>')
map({ "n", "v" }, "<leader>t", '<cmd>call VSCodeNotify("workbench.action.togglePanel")<cr>')
map({ "n", "v" }, "<leader>ca", "<cmd>call VSCodeNotify('editor.action.quickFix')<cr>")