mirror of
https://github.com/NotAShelf/direnv.nvim.git
synced 2026-04-16 15:24:15 +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
|
||||
local function setup_keymaps(keymaps, mode)
|
||||
for _, map in ipairs(keymaps) do
|
||||
local options = vim.tbl_extend(
|
||||
"force",
|
||||
{ noremap = true, silent = true },
|
||||
map[3] or {}
|
||||
)
|
||||
local options = vim.tbl_extend("force", { silent = true }, map[3] or {})
|
||||
if map[1] then
|
||||
vim.keymap.set(mode, map[1], map[2], options)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue