Mercurial > dotfiles
diff .chezmoitemplates/init.lua @ 560:c8b76a79611a
Fix mapping for grepper
author | Zeger Van de Vannet <zegervdv@me.com> |
---|---|
date | Tue, 15 Feb 2022 13:21:27 +0100 |
parents | 3ac8dac65b1b |
children | 6f07ecae3810 |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Tue Feb 15 13:20:46 2022 +0100 +++ b/.chezmoitemplates/init.lua Tue Feb 15 13:21:27 2022 +0100 @@ -197,9 +197,6 @@ cmd = { 'Grepper', 'Ag' }, keys = { { 'n', 'gs' }, { 'x', 'gs' } }, config = function() - local nmap = vim.keymap.nmap - local xmap = vim.keymap.xmap - vim.g.grepper = { tools = { 'ag', 'hg' }, highlight = 1, @@ -208,8 +205,7 @@ }, } - nmap { 'gs', '<plug>(GrepperOperator)' } - xmap { 'gs', '<plug>(GrepperOperator)' } + vim.keymap.set({"x", "n"}, "gs", '<plug>(GrepperOperator)') end, setup = function() vim.api.nvim_add_user_command(