diff --git a/lua/commands.lua b/lua/commands.lua new file mode 100644 index 0000000..5d38a2d --- /dev/null +++ b/lua/commands.lua @@ -0,0 +1,5 @@ +-- commands.lua + +-- autocmd! User GoyoEnter Limelight +-- autocmd! User GoyoLeave Limelight! +-- command W :execute ':silent w !sudo tee % > /dev/null' | :edit! diff --git a/lua/maps.lua b/lua/maps.lua index e0af2aa..4a904ee 100644 --- a/lua/maps.lua +++ b/lua/maps.lua @@ -1,3 +1,4 @@ +-- maps.lua local function map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', options, opts) end @@ -10,19 +11,19 @@ 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', '', '') +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') +-- 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')