Skip to content

Instantly share code, notes, and snippets.

@jonathanmza
Created March 25, 2024 06:51
Show Gist options
  • Save jonathanmza/6bb988e869a93323a3e6c11f93a0fea4 to your computer and use it in GitHub Desktop.
Save jonathanmza/6bb988e869a93323a3e6c11f93a0fea4 to your computer and use it in GitHub Desktop.
local map = vim.keymap.set
map("n", "<S-f>", "<Cmd>Telescope find_files<CR>", { desc = "Find File/Class" })
map("n", "<C-b>", "gd", { desc = "Navigate to Class/Definition" })
map("n", "<A-S-Up>", ":m-2<CR>", { desc = "Move Line Up (Alt + Shift + Up)" })
map("n", "<A-S-Down>", ":m+<CR>", { desc = "Move Line Down (Alt + Shift + Down)" })
map("v", "<A-S-Up>", ":move '<-2<CR>gv", { desc = "Move Selected Block Up (Alt + Shift + Up)" })
map("v", "<A-S-Down>", ":move '>+1<CR>gv", { desc = "Move Selected Block Down (Alt + Shift + Down)" })
map("n", "<A-Up>", "<Plug>(expand_region_expand)", { desc = "Expand Selection" })
map("v", "<A-Up>", "<Plug>(expand_region_expand)", { desc = "Expand Selection" })
map("n", "<A-Down>", "<Plug>(expand_region_shrink)", { desc = "Shrink Selection" })
map("v", "<A-Down>", "<Plug>(expand_region_shrink)", { desc = "Shrink Selection" })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment