We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daabf69 commit 8b78347Copy full SHA for 8b78347
plugin/grepper.vim
@@ -799,8 +799,17 @@ function! s:prompt(flags)
799
call inputsave()
800
801
try
802
- let a:flags.query = input(prompt_text, a:flags.query,
803
- \ 'customlist,grepper#complete_files')
+ if has('nvim-0.3.4')
+ let a:flags.query = input({
804
+ \ 'prompt': prompt_text,
805
+ \ 'default': a:flags.query,
806
+ \ 'completion': 'customlist,grepper#complete_files',
807
+ \ 'highlight': { cmdline -> [[0, len(cmdline), 'String']] },
808
+ \ })
809
+ else
810
+ let a:flags.query = input(prompt_text, a:flags.query,
811
+ \ 'customlist,grepper#complete_files')
812
+ endif
813
catch /^Vim:Interrupt$/ " Ctrl-c was pressed
814
let s:prompt_op = 'cancelled'
815
finally
0 commit comments