hrsh7th / vim-compete

Auto completion plugin for vim/nvim that supports fuzzy match.
9 stars 0 forks source link

Add preview for snippets #2

Open Shatur opened 4 years ago

Shatur commented 4 years ago

I suggest adding a preview for snippets as we discussed here: изображение

hrsh7th commented 4 years ago

This feature is a bit complex to implement.

  1. Porting floating-window implementation to vim-vital-vs from vim-lamp

  2. Implement floating-docs feature to vim-compete

  3. Remove floating-docs feature from vim-lamp

  4. Modify completionItem/resolve feature in vim-lamp.

  5. Providing floating-docs information to vim-compete from vim-vsnip-integ

④ needs more careful design.

I have been wanting to implement ① but another step is too heavy...

hrsh7th commented 4 years ago

@Shatur95 By the way, Do you know the coc.nvim? It has well-supported LSP features and huge users community.

Trying to use it is good maybe if you do not know it.

Shatur commented 4 years ago

Yes, I know. coc.nvim does not support semantic highlighting, that very important for C++. It's implemented in vim-lsp and LanguageClient-neovim. Also I prefer more minimalist plugins that do one thing well. Previously I used MUcomplete, but it was not as fast as asyncomplete.vim. So, currently I use vim-lsp + asyncomplete + vim-vsnip. Asyncomplete has some inconveniences - file and spell sources slow down editing (so, I disabled it). Compete looks like good alternative to asyncomplete (at least it have fast file completion and fast fuzzy completion). Therefore, I periodically test it to provide you some feedback (I hope it will be useful). You are actively developing it, which means that you are unsettled by current solutions.

hrsh7th commented 4 years ago

For tools I use often, I prefer an environment where I can change the behavior as I like.

I like the minimalist plugin too. Thanks for explaining your opinion.

If my plugins are not enough, feel free to mention it to me. (I will respond as far as I can)

First sentence was translated by Google translate.