Closed astier closed 4 years ago
:help converter_remove_paren
*deoplete-filter-converter_remove_paren*
converter_remove_paren
It removes parentheses character in a candidate's word.
It doesn't work. I am using NVIM v0.5.0-622-gf26df8bb6
. Here is my minimal vimrc:
cal plug#begin($XDG_DATA_HOME.'/nvim/plugins')
Plug 'deoplete-plugins/deoplete-jedi'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
cal plug#end()
let g:deoplete#enable_at_startup = 1
cal deoplete#custom#source('_', 'converters', ['converter_remove_paren'])
Here is what I get:
I am talking about not displaying paranthesis and the parameters in the pummenu.
access(path: _FdOrPathType, mode: int, ...)
should be just access
.
Also I did read your documentation. But I always understood converter_remove_paren
such that it would prevent deoplete from auto-inserting paranthesis after selecting a completion. Also when I read your FAQ which refers to the following issue thats how I understood it https://github.com/Shougo/deoplete.nvim/issues/150
OK. I get it. converter_remover_paren
is for word
attr only.
I will add new converter for it.
I have added converter_word_abbr
.
call deoplete#custom#source('jedi', 'converters', ['converter_word_abbr'])
Thank you. It works. Except for one minor bug. In combination with converter_auto_paren
the wrong order of both converters appends one (
at the end of functions in the pummenu. The following setting:
cal deoplete#custom#source('jedi', 'converters', [
\'converter_auto_paren',
\'converter_word_abbr',
\])
produces this:
access(
should be access
. If you switch the order of both converters it works correctly:
cal deoplete#custom#source('jedi', 'converters', [
\'converter_word_abbr',
\'converter_auto_paren',
\])
Except for one minor bug. In combination with converter_auto_paren the wrong order of both converters appends one ( at the end of functions in the pummenu.
It is not bug.
You should understand what you do.
converter_auto_paren
changes word
and converter_word_abbr
change abbr
to word
.
It is expected behavior!
I didn't fill out all of the required information because its just a feature request. But can do so if necessary.
The completion-matches of kind function have the parameters attached to them. Examples can be seen in the first screenshot for the functions
access
andadd_dll_directory
. Is it possible remove them? I want to save some space and make the completions more compact.Turn this:
into something like this: