stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.7k stars 32 forks source link

feat: allow to pass extra opts to vim.keymap.set() #83

Closed uga-rosa closed 1 year ago

uga-rosa commented 1 year ago

Allow additional opts to be passed to vim.keymap.set().

Context

I want to pass { nowait = true }.

Description

Allow additional opts to be passed to vim.keymap.set().

Test Plan

Define an nmap that begins with <Esc> as follows, and pass { nowait = true } to see if the delay exists.

nnoremap <Esc><Esc> <Cmd>nohl<CR>

uga-rosa commented 1 year ago

How about this?

stevearc commented 1 year ago

Thanks for the PR!