X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/ce3499096aaf5e54830b99f64ecf159e9809c644..a094d6d601b6f89a6f13adf54e39178584fad13e:/config/nvim/init.lua?ds=inline 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')