From 16b721702823d4d855a58bb122f6e5bbe55deeb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 16 Jan 2024 13:07:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20new=20vscode=20?= =?UTF-8?q?bindings=20to=20the=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/util/vscode.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/util/vscode.lua b/.config/nvim/lua/plugins/extras/util/vscode.lua index 3314a62b..4afc1c9b 100644 --- a/.config/nvim/lua/plugins/extras/util/vscode.lua +++ b/.config/nvim/lua/plugins/extras/util/vscode.lua @@ -62,6 +62,13 @@ vim.api.nvim_create_autocmd("User", { map("n", "e", vscode_action("workbench.view.explorer")) -- Open terminal map("n", "ft", vscode_action("workbench.action.terminal.focus")) + -- close editor + map("n", "bd", vscode_action("workbench.action.closeActiveEditor")) + -- breakpoints + map("n", "", vscode_action("editor.debug.action.toggleBreakpoint")) + -- windows + map("n", "|", vscode_action("workbench.action.splitEditorRight")) + map("n", "-", vscode_action("workbench.action.splitEditorDown")) -- LSP actions map("n", "ca", vscode_action("editor.action.codeAction")) map("n", "gy", vscode_action("editor.action.goToTypeDefinition"))