fedepujol / move.nvim

Gain the power to move lines and blocks and auto-indent them!
GNU General Public License v3.0
345 stars 6 forks source link

BREAKING CHANGES #28

Open fedepujol opened 6 months ago

fedepujol commented 6 months ago

This issue is for tracking breaking changes in the plugin.

fedepujol commented 6 months ago

In release v2.0.0 the plugin now uses a setup function for it's configuration.

The call to the function could be something like this:

require('move').setup({
  line = {
    enable = true, -- Enables line movement
    indent = true  -- Toggles indentation
  },
  block = {
    enable = true, -- Enables block movement
    indent = true  -- Toggles indentation
  },
  word = {
    enable = true, -- Enables word movement
  },
  char = {
    enable = false -- Enables char movement
  }
})

By default, the char commands are disabled (MoveHChar, MoveChar)