mapx.nvim
mapx.nvim copied to clipboard
🗺 A better way to create key mappings in Neovim
Important information will be announced here, such as new major versions and breaking changes. Please subscribe to this issue to receive a notification when there's a new announcement.
```lua map({"i", "s"}, '', function() ls.expand_or_jump() end()) ```
For example, this currently does not work: ```lua require'mapx'.map("t", setmetatable({}, { __call = function() print"test" end })) ```
This should simplify the code a bit and likely improve performance.
This would dramatically simplify the code by obviating the need for direct coupling with WhichKey. This can be partially implemented immediately by passing the `desc` option to `nvim_set_keymap()`, but the...
Hello, I really like the idea of this plugin and have something similar implemented in my dotfiles: ``` local escape_cmd = function(string) return string:gsub("'", "\\'"):gsub('"', '\\"'):gsub('\\[', '\\['):gsub('\\]', '\\]'):gsub('
Close #10
I'm looking for a quick way to execute vim commands without writing functions, like so. `nnoremap([[keymap]], {Command1, Command2, Command3}, silent)` So if the second function in `nnoremap` is a table,...