Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.33 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.33 KB

move-lines.nvim

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

Features

  • Moves selected lines up, down, left or right.
  • Customizable keybindings.
  • Lightweight and minimal.

Default keybindings

  • <C-J> to move lines down.
  • <C-K> to move lines up.
  • <C-H> to move lines left.
  • <C-L> to move lines right.

Installation

Using lazy.nvim

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

Using packer.nvim

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

With custom keybindings

require('move-lines').setup({
    move_down = '<C-J>', -- Custom key for moving lines down
    move_up = '<C-K>',   -- Custom key for moving lines up
    move_left = '<C-H>', -- Custom key for moving lines left
    move_right = '<C-L>' -- 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.