davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

Make use native popup windows #1035

Closed mymedia2 closed 3 years ago

mymedia2 commented 3 years ago

This pull request offers to switch to native popup windows fully available since Vim 8.2. This solution will fix overlapping with other plugins which rely on buffer content. For example, vim-gitgutter is triggered by Jedi and marks lines above current one as modified due to invisible ?!? stuff.

At the moment, the new implementation is not completed. It does not highlight selected parameter yet. If the idea makes interested, I will add full support to re-implement existing behavior.

davidhalter commented 3 years ago

I'm definitely interested in that kind of stuff. Does that also work in neovim?

If the ?!? is annoying for you I would recommend using show_call_signatures = 2 or something like this.

mymedia2 commented 3 years ago

I fear NeoVim does not support this API, but it seems to have api-floatwin that may be used for comparable functionality.

blueyed commented 3 years ago

This overlaps with https://github.com/davidhalter/jedi-vim/pull/652.

blueyed commented 3 years ago

@mymedia2 please consider trying https://github.com/davidhalter/jedi-vim/pull/652