An open API service indexing awesome lists of open source software.

https://github.com/kobbikobb/move-lines.nvim

Simple Neovim plugin to move selected lines up or down
https://github.com/kobbikobb/move-lines.nvim

Last synced: 8 days ago
JSON representation

Simple Neovim plugin to move selected lines up or down

Awesome Lists containing this project

README

        

# move-lines.nvim

A Simple Neovim plugin for moving lines selected in virtual mode.

- [Features](#features)
- [Default keybindings](#default-keybindings)
- [Installation](#installation)
- [Contributing](#contributing)
- [License](#license)

## Features
- Moves selected lines up, down, left or right.
- Customizable keybindings.
- Lightweight and minimal.

## Default keybindings
- `` to move lines down.
- `` to move lines up.
- `` to move lines left.
- `` to move lines right.

## Installation

### Using `lazy.nvim`

```lua
{
'kobbikobb/move-lines.nvim',
config = function()
require('move-lines').setup()
end,
}
```

### Using `packer.nvim`

```lua
{
'kobbikobb/move-lines.nvim',
config = function()
require('move-lines').setup()
end,
}
```

### With custom keybindings

```lua
require('move-lines').setup({
move_down = '', -- Custom key for moving lines down
move_up = '', -- Custom key for moving lines up
move_left = '', -- Custom key for moving lines left
move_right = '' -- Custom key for moving lines right
})
```

## Contributing

We welcome contributions! Feel free to submit issues or pull requests to improve the plugin.

## License

This project is licensed under the MIT License. See the `LICENSE` file for more details.