From bbd3dab16574166c6a62e92937fa5f37341396d1 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Wed, 25 Sep 2024 06:18:30 +0200 Subject: [PATCH] feat(move): replace move.nvim with vim-move --- lazy-lock.json | 3 +-- lua/plugins/move.lua | 22 ---------------------- lua/plugins/vim-move.lua | 6 ++++++ 3 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 lua/plugins/move.lua create mode 100644 lua/plugins/vim-move.lua diff --git a/lazy-lock.json b/lazy-lock.json index 561d524..6c9c834 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -9,7 +9,6 @@ "context.vim": { "branch": "master", "commit": "82eb26de265292808917b82f3eda2725b53d785c" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, - "fm-nvim": { "branch": "master", "commit": "8e6a77049330e7c797eb9e63affd75eb796fe75e" }, "friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" }, "gitsigns.nvim": { "branch": "main", "commit": "1ef74b546732f185d0f806860fa5404df7614f28" }, "grapple.nvim": { "branch": "main", "commit": "7aedc261b05a6c030397c4bc26416efbe746ebf1" }, @@ -19,7 +18,6 @@ "lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "moonfly": { "branch": "master", "commit": "4f7d18cb471ede7407dd966c7563868cae7f4f99" }, - "move.nvim": { "branch": "main", "commit": "cccbd4ea9049ca5f99f025ffaddb7392359c7d6a" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-colorizer.lua": { "branch": "master", "commit": "194ec600488f7c7229668d0e80bd197f3a2b84ff" }, "nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" }, @@ -32,6 +30,7 @@ "telescope.nvim": { "branch": "master", "commit": "5972437de807c3bc101565175da66a1aa4f8707a" }, "vim-flog": { "branch": "master", "commit": "03f6e39050c2a32deca6964291005c6c5c4c73cf" }, "vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" }, + "vim-move": { "branch": "master", "commit": "3c4195de0748da9bba25c54d78d959d349e93c55" }, "winresizer": { "branch": "master", "commit": "9bd559a03ccec98a458e60c705547119eb5350f3" }, "winshift.nvim": { "branch": "main", "commit": "37468ed6f385dfb50402368669766504c0e15583" } } diff --git a/lua/plugins/move.lua b/lua/plugins/move.lua deleted file mode 100644 index 97909de..0000000 --- a/lua/plugins/move.lua +++ /dev/null @@ -1,22 +0,0 @@ --- https://github.com/fedepujol/move.nvim - --- TODO: figure out how to add "silent" to keymaps ----@type LazyPluginSpec -return { - "fedepujol/move.nvim", - keys = { - { "", function() vim.cmd.MoveLine(1) end, mode = "n" }, - { "", function() vim.cmd.MoveLine(-1) end, mode = "n" }, - { "", function() vim.cmd.MoveHChar(-1) end, mode = "n" }, - { "", function() vim.cmd.MoveHChar(1) end, mode = "n" }, - { "", ":MoveBlock(1)", mode = "x" }, - { "", ":MoveBlock(-1)", mode = "x" }, - { "", ":MoveHBlock(-1)", mode = "x" }, - { "", ":MoveHBlock(1)", mode = "x" }, - }, - opts = { - char = { - enable = true, - }, - }, -} diff --git a/lua/plugins/vim-move.lua b/lua/plugins/vim-move.lua new file mode 100644 index 0000000..b4e2222 --- /dev/null +++ b/lua/plugins/vim-move.lua @@ -0,0 +1,6 @@ +-- https://github.com/matze/vim-move + +---@type LazyPluginSpec +return { + "matze/vim-move", +}