From 7c9abd7463a27b7a7fd8a0c7e59653a7602613b6 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 24 May 2023 21:59:32 +0200 Subject: [PATCH] fix(vscode): only remap keybinds when running in vscode --- lua/lazyvim/config/keymaps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 04ae01a5..56fb2a1b 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -8,6 +8,9 @@ local function map(mode, lhs, rhs, opts) if not keys.active[keys.parse({ lhs, mode = mode }).id] then opts = opts or {} opts.silent = opts.silent ~= false + if opts.remap and not vim.g.vscode then + opts.remap = nil + end vim.keymap.set(mode, lhs, rhs, opts) end end