# HG changeset patch # User zegervdv # Date 1650125017 -7200 # Node ID 6bb59cb7cdd47a06f3e3ee88e48db52ec56d0495 # Parent 7f2a18dd6b8f221a7d22eaeb16ed86c8874f5502 update nvim api for 0.7 diff -r 7f2a18dd6b8f -r 6bb59cb7cdd4 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Sat Apr 16 17:59:38 2022 +0200 +++ b/.chezmoitemplates/init.lua Sat Apr 16 18:03:37 2022 +0200 @@ -222,7 +222,7 @@ } vim.keymap.set({ 'x', 'n' }, 'gs', '(GrepperOperator)') - vim.api.nvim_add_user_command( + vim.api.nvim_create_user_command( 'Ag', 'Grepper -noprompt -tool ag -grepprg rg --vimgrep ', { complete = 'file', nargs = '*' } @@ -1015,7 +1015,7 @@ end) end -vim.api.nvim_add_user_command('LspRename', LspRename, {}) +vim.api.nvim_create_user_command('LspRename', LspRename, {}) local fd_quickfix = function(args) local grepprg = vim.opt.grepprg @@ -1029,7 +1029,7 @@ vim.opt.grepprg = grepprg vim.opt.grepformat = grepformat end -vim.api.nvim_add_user_command('Cfd', fd_quickfix, { nargs = '+', complete = 'file' }) +vim.api.nvim_create_user_command('Cfd', fd_quickfix, { nargs = '+', complete = 'file' }) vim.diagnostic.config { underline = true,