maralla / completor.vim

Async completion framework made ease.
MIT License
1.31k stars 62 forks source link

Open function definition in a new split/buffer/tab #170

Closed imaluengo closed 5 years ago

imaluengo commented 6 years ago

Sorry I'm a bit new here. I am aware that one could jump to the definition as stated in https://github.com/maralla/completor.vim/issues/145

Is there an option to open the definition in e.g. a new horizontal split rather than in the same window?

I'm currently using:

noremap <C-d> :split \| call completor#do('definition')<CR>

But I wonder if there is any other better alternative? Or is it the way to go?

arp242 commented 6 years ago

There is a g:completor_def_split option that can be set to split, vsplit, or tab. See #208 and #218