Mercurial > dotfiles
changeset 589:6bb59cb7cdd4
update nvim api for 0.7
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 16 Apr 2022 18:03:37 +0200 |
parents | 7f2a18dd6b8f |
children | bfcc28bfd070 |
files | .chezmoitemplates/init.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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', '<plug>(GrepperOperator)') - vim.api.nvim_add_user_command( + vim.api.nvim_create_user_command( 'Ag', 'Grepper -noprompt -tool ag -grepprg rg --vimgrep <args>', { 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,