mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-24 04:34:34 +02:00
fix(vscode): only remap keybinds when running in vscode
This commit is contained in:
parent
868ccedff2
commit
7c9abd7463
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue