馃敀 Backup for my config files
dotfiles
1local map = vim.keymap.set
2local opts = { noremap = true, silent = true }
3
4-- quickly restart the lsp server
5map("n", "<leader>uu", "<cmd>lsp restart<cr>")
6
7-- exit insert mode by double tapping `j`
8map("i", "jj", "<esc>", opts)
9
10-- increment/decrement
11map("n", "+", "<C-a>", opts)
12map("n", "-", "<C-x>", opts)
13
14-- select all
15map("n", "<C-a>", "gg<S-v>G", opts)