https://github.com/brianhuster/snipexec.nvim
https://github.com/brianhuster/snipexec.nvim
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/brianhuster/snipexec.nvim
- Owner: brianhuster
- License: apache-2.0
- Created: 2025-02-03T03:53:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T04:26:54.000Z (over 1 year ago)
- Last Synced: 2025-02-03T04:28:04.835Z (over 1 year ago)
- Language: Lua
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This plugin provides a keymapping to execute a Vimscript/Lua/Python/Ruby/Perl code snippet
# Installation
## Prerequisites:
- Neovim 0.10 or higher
- For other languages than Vimscript and Lua, you need to set up their respective providers. See `:h provider-python`, `:h provider-ruby`, `:h provider-perl` for instructions.
## Install using your favorite plugin manager.
For example, with lazy.nvim:
```lua
{
"brianhuster/snipexec.nvim",
}
```
vim-plug:
```vim
Plug 'brianhuster/snipexec.nvim'
```
Native "packages":
```bash
git clone --depth=1 https://github.com/brianhuster/snipexec.nvim.git ~/.local/share/nvim/site/pack/vendor/start/snipexec.nvim
```
# Usage
For usage and configuration, see [`:h snipexec.nvim`]()
When you change option `keymap`, for example from `g=` to `yx`, the keymappings will be updated like this:
- `g={motion}` will become `yx{motion}`
- `{Visual}g=` will become `yx{Visual}`
- `g==` will become `yxx` (the last character is duplicated)
# Credits:
- [vim-scriptease](https://github.com/tpope/vim-scriptease)