Skip to content

Commit

Permalink
fix: meta key
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Mar 7, 2024
1 parent 91656da commit 58d690a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/bombadil/plugin/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ nnoremap("<leader>J", function()
end, { desc = "Jumplist (local)" })

-- Move lines
nnoremap("<M-j>", function()
nnoremap("<D-j>", function()
vim.cmd [[m .+1<CR>==]]
end, { desc = "Move line down" })

nnoremap("<M-k>", function()
nnoremap("<D-k>", function()
vim.cmd [[m .-2<CR>==]]
end, { desc = "Move line up" })

Expand All @@ -76,11 +76,11 @@ nnoremap("<C-s>", function()
end, { desc = "save" })

-- Move lines
vnoremap("<M-j>", function()
vnoremap("<D-j>", function()
vim.cmd [[m '>+1<CR>gv=gv]]
end, { desc = "Move line down" })

vnoremap("<M-k>", function()
vnoremap("<D-k>", function()
vim.cmd [[m '<-2<CR>gv=gv]]
end, { desc = "Move line up" })

Expand Down
2 changes: 2 additions & 0 deletions plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ return function()
["<C-p>"] = false,
["<C-s>"] = actions.select_horizontal,
["<C-x>"] = false,
["<D-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
["<M-q>"] = false,
},
},

Expand Down

0 comments on commit 58d690a

Please sign in to comment.