Skip to content

Simple Neovim plugin to move selected lines up or down

License

Notifications You must be signed in to change notification settings

kobbikobb/move-lines.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Simple Neovim plugin to move selected lines up or down

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages