local map = vim.api.nvim_set_keymap local default_opts = {noremap = true, silent = true} -- move around splits using Ctrl + {h,j,k,l} map('n', '', 'h', default_opts) map('n', '', 'j', default_opts) map('n', '', 'k', default_opts) map('n', '', 'l', default_opts) -- Align blocks of text and keep them selected map('v', '<', '', '>gv', {}) -- Automatically spell check last error in insert mode map('i', '', 'u[s1z=`]au', default_opts) -- Find files using Telescope command-line sugar. map('n', 'e', 'Telescope find_files') map('n', 'g', 'Telescope live_grep') map('n', 'b', 'Telescope buffers') map('n', 'h', 'Telescope help_tags')