From: Ruben Beltran del Rio Date: Tue, 18 Jul 2023 19:39:02 +0000 (+0200) Subject: Update the goyo config X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/9603dc4bd113317d57643c269f3dff0076247116?ds=inline Update the goyo config --- diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 02f5bd5..994ebef 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -108,20 +108,19 @@ vim.g.limelight_conceal_guifg = 'DarkGray' vim.api.nvim_create_autocmd({'User'}, { pattern = 'GoyoEnter', - callback = 'Limelight' + command = 'Limelight' }) vim.api.nvim_create_autocmd({'User'}, { pattern = 'GoyoLeave', - callback = 'Limelight!' + command = 'Limelight!' }) ---[[ -nnoremap i :Limelight!!== -inoremap i :Limelight!!==gi -vnoremap i :Limelight!!gv=gv -nnoremap g :Goyo== -inoremap g :Goyo==gi -vnoremap g :Goyogv=gv -]]-- + +vim.keymap.set('n', 'i', ':Limelight!!==') +vim.keymap.set('i', 'i', ':Limelight!!==gi') +vim.keymap.set('v', 'i', ':Limelight!!gv=gv') +vim.keymap.set('n', 'g', ':Goyo==') +vim.keymap.set('i', 'g', ':Goyo==gi') +vim.keymap.set('v', 'g', ':Goyogv=gv') -- Plugins require('plugins')