From 6bc0f9b72490ea8ef26d247d36710ed35de37b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 23 Jan 2024 10:31:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20new=20search=20keymap?= =?UTF-8?q?s=20for=20the=20vscode=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/util/vscode.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/util/vscode.lua b/.config/nvim/lua/plugins/extras/util/vscode.lua index 23d10bc0..e8c6f3be 100644 --- a/.config/nvim/lua/plugins/extras/util/vscode.lua +++ b/.config/nvim/lua/plugins/extras/util/vscode.lua @@ -54,10 +54,6 @@ end vim.api.nvim_create_autocmd("User", { pattern = "LazyVimKeymaps", callback = function() - -- find file - map("n", "", "Find") - -- find in files - map("n", "/", vscode_action("workbench.action.findInFiles")) -- view problems map("n", "xx", vscode_action("workbench.actions.view.problems")) -- open file explorer @@ -141,6 +137,16 @@ vim.api.nvim_create_autocmd("User", { map("n", "[d", vscode_action("editor.action.marker.prev")) -- whichkey map("n", "", vscode_action("whichkey.show")) + -- search + map("n", "", "Find") + map("n", "ff", "Find") + map("n", "/", vscode_action("workbench.action.findInFiles")) + map("n", "sg", vscode_action("workbench.action.findInFiles")) + map("n", "sc", vscode_action("workbench.action.showCommands")) + -- format + map("n", "cf", vscode_action("editor.action.formatDocument")) + -- ui + map("n", "uC", vscode_action("workbench.action.selectTheme")) end, })