Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryoppippi/nvim-reset
a Neovim plugin that allows you to disable all default keymaps in Neovim with a single command.
https://github.com/ryoppippi/nvim-reset
neovim neovim-plugin
Last synced: 3 months ago
JSON representation
a Neovim plugin that allows you to disable all default keymaps in Neovim with a single command.
- Host: GitHub
- URL: https://github.com/ryoppippi/nvim-reset
- Owner: ryoppippi
- License: mit
- Created: 2024-05-30T14:27:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T18:47:58.000Z (9 months ago)
- Last Synced: 2024-05-31T18:57:08.880Z (9 months ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nvim-reset
nvim-reset is a Neovim plugin that allows you to disable all default keymaps in Neovim with a single command.
## Features
- Disables all default keymaps in Neovim
- Customizable ignore list to exclude specific keymaps from being reset## Requirements
- Neovim 0.10.0 or later
## Installation
Using [lazy.nvim](https://github.com/folke/lazy.nvim):
```lua
{
"ryoppippi/nvim-reset",
opts = {}
}
```## Configuration
You can customize the behavior of nvim-reset by passing options to the `setup` function. Here's an example configuration:
```lua
{
"ryoppippi/nvim-reset",
opts = {
create_plugin_keymap = false,
ignore_maps = {
{
mode = "n",
lhs = "gc"
},
{
mode = {"i", "x"},
lhs = "Q"
}
}
}
}
```In this example, the `ignore_maps` option is used to specify keymaps that should not be reset. The `mode` can be either a single mode string or a table of mode strings, and `lhs` represents the left-hand side of the keymap.
When `create_plugin_keymap` is set to `true`, nvim-reset will create a keymap that can be used to reset keymaps like `-NvimReset-[[mode]]-[[lhs]]`.
*You must call `setup` function before configuring your own keymaps. Otherwise, your keymaps will be reset.*
## Usage
Once you have installed and configured nvim-reset, it will automatically reset all default keymaps in Neovim, excluding any keymaps specified in the `ignore_list`.
## License
This plugin is released under the [MIT License](https://opensource.org/licenses/MIT).
## Author
[ryoppippi](https://github.com/ryoppippi)