Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

deoplete screenshots #96

Open Shougo opened 8 years ago

Shougo commented 8 years ago

I want to add the screenshots in README. If you have good screenshots for deoplete README, can you add it in this issue?

Shougo commented 6 years ago

Hello, sorry for the possibly tedious answer... I was looking at @richox gif using neco-vim and exploring g:deplete variables and I've realized that, although I am able to see all functions after typing call deoplete, when I type let g:deoplete I only see a few vars from deoplete...

It is feature. I have removed old variables in deoplete. Please use deoplete#custom#option() instead. :help deoplete-options

rebelot commented 6 years ago

@Shougo thank you for your prompt reply! I see, but If I call deoplete#custom#option() I'll have to redefine also default values that I am already ok with... or am I missing something? also... since I am here... is it possible to trigger deoplete completion manually without typing any character? I like to have autocompletion as I type, and I am ok with min_pattern_length = 2 and complete_method = "complete", but I'd like to call deoplete#mappings#manual_complete() (i.e. with imap <expr> <C-Space> deoplete#mappings#manual_complete()) from any point to see top level modules and variables for example

Thank you again!

Shougo commented 6 years ago

I'll have to redefine also default values that I am already ok with... or am I missing something?

You don't have to set all options. Please read the documentation...

is it possible to trigger deoplete completion manually without typing any character?

Possible.

Please use deoplete#manual_complete() like this.

imap <expr><C-Space> deoplete#manual_complete()
rebelot commented 6 years ago

thank you @Shougo, I feel bad for this off topic, but what I was aiming for is to be able to press <C-Space> also on a blank line, not after a character. https://stackoverflow.com/questions/50719034/manually-trigger-deoplete-anywhere-to-explore-top-level-names

Shougo commented 6 years ago

It is bug of neovim. I will fix it later.

Shougo commented 6 years ago

I have fixed the manual completion error. No problem.

rebelot commented 6 years ago

this is exactly the behavior I expected! thanks!

but....

schermata 2018-06-09 alle 12 51 44

The process remains there hanging even after i close neovim. It happens only if I call manual completion after a whitespace, not after or within a word.

Also, the problem seems to arise only on a [New Buffer] type of buffer (i.e. no filetype specified or unsaved?). I am not able to reproduce this consistently though. It might depend on call deoplete#custom#option('max_list', 100000) and wellle/tmux-complete.vim from which the most of the candidates are coming from.

I don't think it is your bug, but advise users to be careful about "unexpected behavior" when using this feature in some circumstances, as it is likely that literally all available candidates from all sources will try to populate the list!

Thank you again Shougo

Shougo commented 6 years ago

The process remains there hanging even after i close neovim. It happens only if I call manual completion after a whitespace, not after or within a word.

I don't work for the problem. Because, you don't create the issue.

Shougo commented 6 years ago

Also, the problem seems to arise only on a [New Buffer] type of buffer (i.e. no filetype specified or unsaved?). I am not able to reproduce this consistently though. It might depend on call deoplete#custom#option('max_list', 100000) and wellle/tmux-complete.vim from which the most of the candidates are coming from.

I think it seems tmux-complete.vim problem.

Shougo commented 6 years ago

You have said I want to get all candidates. It is your expected behavior.

Shougo commented 6 years ago

https://github.com/wellle/tmux-complete.vim/blob/master/rplugin/python3/deoplete/sources/tmuxcomplete.py#L15

The input check should be added.

takkii commented 6 years ago

neo_nekodaruma

スクリーンショット。 これが、Ruby入力補完辞書を搭載したねこだるまの力(リスト)だ。

https://github.com/takkii/Bignyanco

Shougo commented 6 years ago

OK. I have updated it.

Mesbah214 commented 4 years ago

hi, i've just switched to neovim from vs code. i am expecting the auto complete color scheme to be more readable and easy on eye. is it possible?? Please answer to a noob. Screenshot_20200324_231916

Shougo commented 4 years ago

This site is not Q/A site.

And you should read deoplete documentation.

Q: Is there a way to control the colors used for popup menu using highlight
   groups?

A: Like this:
>
    highlight Pmenu ctermbg=8 guibg=#606060
    highlight PmenuSel ctermbg=1 guifg=#dddd00 guibg=#1f82cd
    highlight PmenuSbar ctermbg=0 guibg=#d6d6d6
<
orangecms commented 4 years ago

2020-07-16-215500416701941

Here's some Rust code with autozimu/LanguageClient-neovim and deoplete. :)

Shougo commented 4 years ago

Thanks.