Skip to content

Commit

Permalink
fix(vscode): only remap keybinds when running in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 24, 2023
1 parent 868cced commit 7c9abd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lazyvim/config/keymaps.lua
Expand Up @@ -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
Expand Down

0 comments on commit 7c9abd7

Please sign in to comment.