mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-25 13:15:04 +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
|
if not keys.active[keys.parse({ lhs, mode = mode }).id] then
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
opts.silent = opts.silent ~= false
|
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)
|
vim.keymap.set(mode, lhs, rhs, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue