How to use `slient!` in the new `vim.keymap.set` API?

As title. I need to suppress the warning forcely.

It’s similar to the api version vim.api.nvim_set_keymap, that takes the map-arguments as a table option.

For example: vim.keymap.set('n', 'lhs', 'rhs', { silent = true })

1 Like