Shougo / deoplete.nvim

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

[question] Enabling description beside completion item #1106

Closed p00f closed 4 years ago

p00f commented 4 years ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

How do I enable decription of the completion item beside the list? Currently, it is like this: https://imgur.com/YM75rtd

Expected

https://imgur.com/uMyuxAd

Environment Information

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"


 * `:checkhealth` or `:CheckHealth` result(neovim only):

health#nvim_lsp#check

Checking language server protocol configuration

health#deoplete#check

deoplete.nvim

health#nvim#check

Configuration

Performance

Remote Plugins

terminal

health#provider#check

Clipboard (optional)

Python 2 provider (optional)

Python 3 provider (optional)

Python virtualenv

Ruby provider (optional)

Node.js provider (optional)

Perl provider (optional)


## Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

```vim
call plug#begin('~/.config/nvim/plugged')
Plug 'neovim/nvim-lsp'
Plug 'mfussenegger/nvim-jdtls'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'Shougo/deoplete.nvim'
Plug 'Shougo/deoplete-lsp'
Plug 'Shougo/neosnippet.vim'
Plug 'ncm2/float-preview.nvim'
Plug 'mhinz/vim-startify'
Plug 'vim-airline/vim-airline'
Plug 'ryanoasis/vim-devicons'
call plug#end()

colorscheme dracula
set termguicolors
set mouse=a
map <ScrollWheelUp> <C-Y>
map <ScrollWheelDown> <C-E>
set number relativenumber
set guifont=Iosevka\ SS05:h13
set tabstop=2
set clipboard+=unnamedplus
" Use deoplete.
let g:deoplete#enable_at_startup = 1
let g:neosnippet#disable_runtime_snippets = {'_' : 1}
let g:neosnippet#enable_completed_snippet = 1
let g:neosnippet#enable_complete_done = 1
let g:float_preview#docked = 0
set completeopt-=preview

"vim-airline config
let g:airline_theme='dracula'
let g:airline_powerline_fonts = 1
let g:airline#extensions#ale#enabled = 1
let g:airline#extensions#coc#enabled = 1
let g:airline#extensions#statusline#enabled = 1
let g:airline#extensions#tabline#enabled = 1

"lua require'nvim_lsp'.vimls.setup{on_attach=require'completion'.on_attach}
lua require'nvim_lsp'.vimls.setup{}
lua require'nvim_lsp'.bashls.setup{}

How to reproduce the problem from neovim/Vim startup (Required!)

This is a question, not a bug report

Generate a logfile if appropriate

  1. export NVIM_PYTHON_LOG_FILE=/tmp/log
  2. export NVIM_PYTHON_LOG_LEVEL=DEBUG
  3. nvim -u minimal.vimrc
  4. some works
  5. cat /tmp/log_{PID}

Screenshot (if possible)

Upload the log file

p00f commented 4 years ago

Both nvim-lsp and coc-vimlsp use the same language server (https://github.com/iamcco/vim-language-server)

Shougo commented 4 years ago
Q: I want to use floating preview window feature with deoplete.

A: Please install float-preview.nvim plugin.
https://github.com/ncm2/float-preview.nvim
Shougo commented 2 years ago

I have tested vim-language-server and it does not include detailed information.

Shougo commented 2 years ago

I think to use this is better.

https://github.com/matsui54/denops-popup-preview.vim

Shougo commented 2 years ago

Note: float-preview.nvim does not support completionItem/resolve behavior. So the problem exists.