Comments (8)
@tweekmonster I was poor physical condition yesterday.
I'll reply later :)
from deoplete-jedi.
@tweekmonster I understand.
and, I mistook deoplete.nvim
implementation.
I want to use converter_auto_paren
.
https://github.com/Shougo/deoplete.nvim/blob/master/rplugin%2Fpython3%2Fdeoplete%2Ffilters%2Fconverter_auto_paren.py
I use the following to assist with completions:
FYI, I use neopairs.vim
https://github.com/Shougo/neopairs.vim
So, I think good behavior is
- If users wants automatically completion bracket, set
call deoplete#custom#set('_', 'converters', ['converter_auto_paren'])
deoplete-jedi
add(
inabbr
orinfo
(maybe already implemented)converter_auto_paren
add(
inword
- If users use
neopairs.vim
, automatically completion)
and, remove (
and .
completion in deoplete-jedi
.
WDYT?
from deoplete-jedi.
@zchee I'll have to try neopairs to understand fully, but it sounds good so far.
It looks like abbr
or info
needs to have ()
in it for the converter. This will leave a problem with Python properties.
In case you don't know:
class Example(object):
@property
def example_property(self):
return True
e = Example()
print(e.ex
When you do a completion on the last line, Jedi will report that example_property
is a function, which is correct. But, it would mean deoplete-jedi will add ()
to it for abbr
. This needs to be addressed before using converter_auto_paren
is recommended.
I think it's possible to distinguish properties from functions and improve some other ambiguous descriptions. I'm going to try and submit a PR if I'm successful.
For now I think it's best to simply remove (
and .
from completion.
from deoplete-jedi.
@tweekmonster Hm, That is correct.
Certainly, this example result is print(e.example_property()
. last char's ()
is not necessary.
I'm going to try and submit a PR if I'm successful.
OK, I look forward to your pull request :) Thanks.
from deoplete-jedi.
For now I think it's best to simply remove ( and . from completion.
OK, I will remove (
and .
completion later.
from deoplete-jedi.
Off topic:
FYI, Shougo/echodoc.vim also good deoplete.nvim
support plugin.
Try use it :)
from deoplete-jedi.
FYI, Shougo/echodoc.vim also good deoplete.nvim support plugin.
Holy shit that's a good plugin now that I tried it. I needed this a long time ago. Thanks! I thought it was for showing the full documentation of a completion when I read the docs for deoplete.nvim. echodoc.nvim doesn't really describe itself either.
from deoplete-jedi.
@tweekmonster 😁 🎉
from deoplete-jedi.
Related Issues (20)
- Python completion sometimes produce noise HOT 2
- deoplete-jedi fails to load on vim + pynvim 0.4.0 HOT 6
- Deoplete-jedi causes vim to crash when editing a specific file HOT 4
- Option to disable/remove advanced/private members like __init__() HOT 1
- Add call signatures HOT 1
- broken with pandas completion HOT 10
- long stacktraces when completing docstring HOT 16
- no module named 'deoplete.base' HOT 3
- Deoplete throws error between two strings HOT 6
- Should `which pyenv` return a shell function in Fish? HOT 3
- Latest version of jedi crash on Windows HOT 8
- Changing the kind/type of completion-matches HOT 8
- Dont add parameter-information to functions HOT 6
- PosixPath object has not attribute 'endswidth' HOT 1
- Error from jedi: __init__() got an unexpected keyword argument 'code' HOT 4
- How I can turn off preview windows HOT 1
- deoplete-jedi crashes when trying to complete pandas DataFrame attributes HOT 3
- How to set autocomplete key to TAB? HOT 5
- Preview window doesn't show method signature HOT 5
- python versions for virtualenv HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deoplete-jedi.