complete-on-dot: do not trigger with dot in front#859
complete-on-dot: do not trigger with dot in front#859blueyed wants to merge 1 commit intodavidhalter:masterfrom
Conversation
| inoremap <silent> <buffer> . .<C-R>=jedi#complete_string(1)<CR> | ||
| function! s:complete_on_dot() abort | ||
| " Do not trigger completion if there is a dot before already. | ||
| if getline('.')[-2:-2] ==# '.' |
There was a problem hiding this comment.
This seems weird, but it is likely the best in Vimscript?!
There was a problem hiding this comment.
This is just not working if you're not editing at the end. We probably need to also use the cursor position.
There was a problem hiding this comment.
True, good catch.. :)
|
What do you think about this change? I personally feel like it's obsolete. We used to have weird issues when using multiple dots. But since Jedi got its shit together about this, I think it's pretty much fine. It obviously still tries to do an autocompletion (I still get a However if you like this change, I'm happy to merge it. Sorry for keeping it open for so long, we really could have merged it. |
Fixes #506