# HG changeset patch # User Zeger Van de Vannet # Date 1644998191 -3600 # Node ID 6f07ecae38106e48e579af2b9b6d8bce51ab7355 # Parent c8b76a79611aed548fc2aa9c621418e205cd1eb3 Create Ag command in config step diff -r c8b76a79611a -r 6f07ecae3810 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Tue Feb 15 13:21:27 2022 +0100 +++ b/.chezmoitemplates/init.lua Wed Feb 16 08:56:31 2022 +0100 @@ -205,9 +205,7 @@ }, } - vim.keymap.set({"x", "n"}, "gs", '(GrepperOperator)') - end, - setup = function() + vim.keymap.set({ 'x', 'n' }, 'gs', '(GrepperOperator)') vim.api.nvim_add_user_command( 'Ag', 'Grepper -noprompt -tool ag -grepprg rg --vimgrep ', @@ -837,14 +835,18 @@ if ls.expand_or_jumpable() then ls.expand_or_jump() end -end, { silent = true }) +end, { + silent = true, +}) -- Go back to previous placeholder vim.keymap.set({ 'i', 's' }, '', function() if ls.jumpable(-1) then ls.jump(-1) end -end, { silent = true }) +end, { + silent = true, +}) -- Toggle options in snippets vim.keymap.set('i', '', function()