Removed move.nvim in favor of vanilla fim
This commit is contained in:
parent
1aade94ba8
commit
0197e64dc2
2 changed files with 7 additions and 14 deletions
|
@ -46,17 +46,13 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
|
|||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
-- Normal-mode commands
|
||||
vim.keymap.set('n', '<A-j>', '<cmd>MoveLine(1)<CR>')
|
||||
vim.keymap.set('n', '<A-k>', '<cmd>MoveLine(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-h>', '<cmd>MoveHChar(-1)<CR>')
|
||||
vim.keymap.set('n', '<A-l>', '<cmd>MoveHChar(1)<CR>')
|
||||
|
||||
-- Visual-mode commands
|
||||
vim.keymap.set('v', '<A-j>', '<cmd>MoveBlock(1)<CR>')
|
||||
vim.keymap.set('v', '<A-k>', '<cmd>MoveBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-h>', '<cmd>MoveHBlock(-1)<CR>')
|
||||
vim.keymap.set('v', '<A-l>', '<cmd>MoveHBlock(1)<CR>')
|
||||
-- Move Lines
|
||||
vim.keymap.set('n', '<A-j>', '<cmd>m .+1<cr>==', { desc = 'Move Down' })
|
||||
vim.keymap.set('n', '<A-k>', '<cmd>m .-2<cr>==', { desc = 'Move Up' })
|
||||
vim.keymap.set('i', '<A-j>', '<esc><cmd>m .+1<cr>==gi', { desc = 'Move Down' })
|
||||
vim.keymap.set('i', '<A-k>', '<esc><cmd>m .-2<cr>==gi', { desc = 'Move Up' })
|
||||
vim.keymap.set('v', '<A-j>', ":m '>+1<cr>gv=gv", { desc = 'Move Down' })
|
||||
vim.keymap.set('v', '<A-k>', ":m '<-2<cr>gv=gv", { desc = 'Move Up' })
|
||||
|
||||
-- https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-n
|
||||
vim.keymap.set('n', 'n', "'Nn'[v:searchforward].'zv'", { expr = true, desc = 'Next Search Result' })
|
||||
|
|
|
@ -16,9 +16,6 @@ require('lazy').setup({
|
|||
-- Remember position
|
||||
{ 'vladdoster/remember.nvim', opts = {} },
|
||||
|
||||
-- Move lines
|
||||
{ 'fedepujol/move.nvim', opts = { noremap = true, silent = true } },
|
||||
|
||||
-- NOTE: Plugins can also be added by using a table,
|
||||
-- with the first argument being the link and the following
|
||||
-- keys can be used to configure plugin behavior/loading/etc.
|
||||
|
|
Loading…
Reference in a new issue