Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
vimpeccable
Neovim plugin that allows you to easily map keys directly to lua code inside your init.lua
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
You can do it with vim.api.nvim_set_keymap by setting rhs to empty string, and passing inn a lua function in the opts table under the key callback. However, I would wait just it until this is merged: https://github.com/neovim/neovim/pull/16591
You can find my approach to keymapping in lua here https://github.com/monkoose/neovim-setup/blob/master/lua/conf/maps.lua
(shamelessplug) nest.nvim supports binding lua functions directly while also cleaning up your kenind code ;-) (/shamelessplug)
This This PR was just merged so you can expect native support for that in the next version (albeit not super pretty, but you can write your own abstraction). Until then take a look at vimpeccable.
mapx allows you to do so