-- 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') -- Telescope map('n', 'ff', 'lua require(\'telescope.builtin\').git_files()') map('n', 'fg', 'lua require(\'telescope.builtin\').live_grep()') map('n', 'fb', 'lua require(\'telescope.builtin\').buffers()') map('n', 'fh', 'lua require(\'telescope.builtin\').help_tags()') -- 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')