Skip to content

Unpredictable behavior #22

@aminnairi

Description

@aminnairi

This plugin kind of works sometimes, and sometimes it does not in an unpredictable way and I can't really find a pattern in here.

record

I have followed the installation instructions (without Legendary) and I'm using LazyNvim.

return {
  "fedepujol/move.nvim",
  config = function()
    local opts = { noremap = true, silent = true }

    -- Normal-mode commands
    vim.keymap.set('n', '<A-j>', ':MoveLine(1)<CR>', opts)
    vim.keymap.set('n', '<A-k>', ':MoveLine(-1)<CR>', opts)
    vim.keymap.set('n', '<A-h>', ':MoveHChar(-1)<CR>', opts)
    vim.keymap.set('n', '<A-l>', ':MoveHChar(1)<CR>', opts)
    vim.keymap.set('n', '<leader>wf', ':MoveWord(1)<CR>', opts)
    vim.keymap.set('n', '<leader>wb', ':MoveWord(-1)<CR>', opts)

    -- Visual-mode commands
    vim.keymap.set('v', '<A-j>', ':MoveBlock(1)<CR>', opts)
    vim.keymap.set('v', '<A-k>', ':MoveBlock(-1)<CR>', opts)
    vim.keymap.set('v', '<A-h>', ':MoveHBlock(-1)<CR>', opts)
    vim.keymap.set('v', '<A-l>', ':MoveHBlock(1)<CR>', opts)
  end,
}

Is there something I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions