reply.vim icon indicating copy to clipboard operation
reply.vim copied to clipboard

Custom reply

Open rainerborene opened this issue 6 years ago • 3 comments

It seems that reply.vim isn't considering this given configuration.

function! s:define_pgsql_repl() abort
  return reply#repl#base('psql', {
        \   'prompt_start': '\v^\w+\=# ',
        \   'prompt_continue': '\v^\w+\-# ',
        \ })
endfunction

let g:reply_repls = {
      \   'pgsql': [function('s:define_pgsql_repl')],
      \ }

Now I try to run this: :Repl pgsql -U app development

I got this instead. reply.vim: REPL 'pgsql' is not defined or not installed. Please check :ReplList

rainerborene avatar Feb 21 '19 22:02 rainerborene

@rhysd any update?

rainerborene avatar Nov 30 '19 15:11 rainerborene

You gave 'psql' to reply#repl#base as REPL name. So :Repl psql is correct. As I described in README.md, keys of g:reply_repls are filetypes, not REPL names. So, with your setup, filetype needs to be set to pgsql in your buffer.

rhysd avatar Dec 02 '19 07:12 rhysd

@rhysd everything is set up correctly like you said and still does not work. please, test and you'll see.

rainerborene avatar Dec 03 '19 17:12 rainerborene