-- maps.lua local function map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options) end vim.g.mapleader = "," -- Toggle Goyo map('n', '', ':Goyo', {noremap = false}) -- Open and move to resized terminal map('n', 't', 'sj :terminal:res 5i', {noremap = false}) -- Enter normal mode in terminal map('t', '¿', '') -- Clear highlight map('n', '', 'noh') -- Move to window in any mode -- map('t', 'ª', 'h') -- map('t', 'º', 'j') -- map('t', '∆', 'k') -- map('t', '@', 'l') -- map('i', 'ª', 'h') -- map('i', 'º', 'j') -- map('i', '∆', 'k') -- map('i', '@', 'l') -- map('n', 'ª', 'h') -- map('n', 'º', 'j') -- map('n', '∆', 'k') -- map('n', '@', 'l')