From 5f08f86295bb33e211fdbcb4ecb05e5765f400a5 Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Thu, 27 Oct 2022 19:55:49 -0400 Subject: [PATCH] Adding vim-lastplace and move.vim --- lua/user/keymaps.lua | 9 +++++++++ lua/user/plugins.lua | 3 +++ 2 files changed, 12 insertions(+) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 6b3da55..7e288b8 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -97,3 +97,12 @@ keymap("n", "", "lua require'dap'.terminate()", opts) -- Shift+F5 --keymap("n", "", "VimspectorReset", opts) -- Shift+F5 --keymap("n", "", "VimspectorRestart", opts) -- Ctrl+Shift+F5 --keymap("n", "di", "VimspectorBalloonEval", opts) + +-- move.vim +-- Normal-mode commands +vim.keymap.set('n', '', ':MoveLine(1)', opts) +vim.keymap.set('n', '', ':MoveLine(-1)', opts) + +-- Visual-mode commands +vim.keymap.set('v', '', ':MoveBlock(1)', opts) +vim.keymap.set('v', '', ':MoveBlock(-1)', opts) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index a4313c3..e934b79 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -113,6 +113,9 @@ return packer.startup(function(use) -- VimSpector --use { "puremourning/vimspector" } + use 'farmergreg/vim-lastplace' + use 'fedepujol/move.nvim' + use { "j-hui/fidget.nvim", commit = "2cf9997d3bde2323a1a0934826ec553423005a26" } -- Automatically set up your configuration after cloning packer.nvim