mirror of
https://github.com/NotAShelf/direnv.nvim.git
synced 2026-04-17 15:50:17 +00:00
fix: remove deprecated option noremap
noremap does nothing, and remap already defaults to false. format
This commit is contained in:
parent
a731762567
commit
d80c6a5cf2
1 changed files with 1 additions and 5 deletions
|
|
@ -65,11 +65,7 @@ end
|
||||||
--- @param mode string|table Vim mode for the keymap
|
--- @param mode string|table Vim mode for the keymap
|
||||||
local function setup_keymaps(keymaps, mode)
|
local function setup_keymaps(keymaps, mode)
|
||||||
for _, map in ipairs(keymaps) do
|
for _, map in ipairs(keymaps) do
|
||||||
local options = vim.tbl_extend(
|
local options = vim.tbl_extend("force", { silent = true }, map[3] or {})
|
||||||
"force",
|
|
||||||
{ noremap = true, silent = true },
|
|
||||||
map[3] or {}
|
|
||||||
)
|
|
||||||
if map[1] then
|
if map[1] then
|
||||||
vim.keymap.set(mode, map[1], map[2], options)
|
vim.keymap.set(mode, map[1], map[2], options)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue