kobbikobb/move-lines.nvim

github github
editing-support
stars 3
issues 1
subscribers 2
forks 1
CREATED

2024-12-28

UPDATED

16 days ago


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.