petobens
4095d0efef
Add variable to control the height of the buffer showing documentation
2015-05-02 10:34:43 +02:00
Daniel Hahler
dd4cb80911
Move jedi#_vim_exceptions before call to jedi#init_python
...
It might be used during setup, in the case of errors and needs to be
defined then already.
2015-05-02 00:44:33 +02:00
Daniel Hahler
2f06d90f95
Fix jedi#complete_opened for completeopt with "longest"
...
jedi#complete_opened: move <C-p> for is_popup_on_dot below "longest"
handling.
Fixes #399 .
2015-05-01 04:41:33 +02:00
Dave Halter
78ac52a26e
Merge remote-tracking branch 'origin/dev'
2015-04-29 23:41:37 +02:00
Daniel Hahler
d76c00eff4
jedi#init_python: add v:throwpoint to error message
2015-04-29 23:11:44 +02:00
Daniel Hahler
3c79979c50
Move functions used by jedi#init_python before it
2015-04-29 23:11:44 +02:00
Daniel Hahler
1837cdee1f
Move Python init to top of autoloading; finish in case of error
...
This will not define jedi-vim's functions in case initialization failed.
2015-04-29 23:11:44 +02:00
Daniel Hahler
e43012afc8
Refactor init method: add jedi#init_python
...
- jedi#init_python is used to init the Python environment.
- jedi#setup_py_version is the single point where PythonJedi is
defined, and will configure `PythonJedi` to output an error in case
initialization failed.
- jedi#force_py_version_switch will throw an error when
g:jedi#force_py_version is not handled (e.g. invalid or "auto" and
unresolved).
- When g:jedi#force_py_version is provided, it will be used always.
- Use WarningMsg highlight for errors, which are centralized and
handled through exceptions.
2015-04-29 23:11:44 +02:00
Daniel Hahler
2d74fe6c51
Use PythonJedi instead of Python as command wrapper
...
`:Python` is more likely to interfere with other plugins / user
commands.
2015-04-29 23:11:44 +02:00
Daniel Hahler
9779628322
Refactor 'auto' handling
2015-04-29 23:11:44 +02:00
Daniel Hahler
3497a9644e
jedi#force_py_version: catch errors
...
This prevents the script from aborting, in case e.g. `py3file` is not
defined, but should be forced.
2015-04-29 23:11:44 +02:00
Daniel Hahler
0cd664d8f7
Drop jedi#get_force_py_version again, handle 'auto' once
2015-04-29 23:11:44 +02:00
Daniel Hahler
7784c29a59
Optimize python check for Neovim: skip has() calls
2015-04-29 23:11:43 +02:00
Daniel Hahler
8f7f07fb58
Support for force_py_version = "auto"
...
This will call `python` to look up its major version number.
2015-04-29 23:11:43 +02:00
Daniel Hahler
63dc0badac
Fix popup-on-dot completion: use <C-p> to deselect the first entry
...
Without this, the <C-x><C-o> triggered by jedi-vim would cause the first
match to be inserted (and selected). When using completopt=longest,
this was less so an issue.
2015-04-29 23:09:18 +02:00
Dave Halter
b78f1d74c5
Merge branch 'master' of github.com:davidhalter/jedi-vim
2015-04-28 19:42:31 +02:00
Daniel Hahler
a233d603e3
add_goto_window: pass len of list and use min()
...
With less than `g:jedi#quickfix_window_height` entries in quickfix list,
this now only makes the window that large, effectively saving screen
space.
2015-04-08 16:10:56 +02:00
Dave Halter
bf96f7d611
jedi#auto_vim_configuration might not have been set before loading plugin. Therefore check if it was set.
2015-04-02 16:16:17 +02:00
Dave Halter
e87e7db0e9
Trying to improve jedi-vim, when Jedi is not found. Fixes #263 .
2015-03-30 19:11:05 +02:00
Dave Halter
075cd9ce69
call signature escape characters moved from == to =`=, because that's something way less common.
2015-03-25 16:29:06 +01:00
Dave Halter
d82df60392
Replace the call_signature_escape character with == (was a weird unicode character before), fixes #238 .
2015-03-25 14:29:24 +01:00
pearofducks
55929b2713
Set 'hide documentation' to the same mapping as jedi#documentation_command - instead of K
2015-03-07 15:08:07 +01:00
Jacob Niehus
f44ae4efe0
Fix autocmd error in Vim <7.3.867
2014-12-06 14:47:45 -07:00
Jacob Niehus
9ea98e2e81
Fix obscure undojoin bug
2014-12-06 14:47:45 -07:00
Jacob Niehus
e1a49790cb
Remove manual width calculation and handle horizontal scroll
2014-12-06 14:47:45 -07:00
Jacob Niehus
048b9dc286
Fix autocmd outside of if statement
2014-12-06 14:47:45 -07:00
Jacob Niehus
cfd71a6b54
Add option to show call signatures in command line
2014-12-06 14:47:45 -07:00
Dave Halter
0ce1af78b2
Merge pull request #336 from davidhalter/dev
...
Merge the dangling dev branch stuff back into master
2014-12-06 16:10:47 +01:00
itchyny
d477ee6557
add scriptencoding ( fix #325 )
2014-11-25 08:32:26 +09:00
Talha Ahmed
e620b5bf50
fixed mismatched parenthesis :|
2014-05-14 10:49:19 +05:00
Talha Ahmed
1792fb9e1b
Find __doc__ window if opened in current tab
2014-05-14 09:47:18 +05:00
haconeco
5e0bf55972
Update jedi.vim
2014-03-07 22:53:09 +09:00
David Halter
d43768c7b5
merge master to dev
2013-12-23 20:47:20 +01:00
Asa Jay
b1205ce779
Load only default/forced py_version, changed names and variable type
...
1. Changed pycmd: renamed to py_version, changed type, resulting in
...#force_py_version = <int> (2 or 3)
2. Changed structure of initialization, changes broke functionality
(<sfile> behaviour changes inside a function)
3. Cleaned up.
2013-12-15 17:01:28 +01:00
Asa Jay
3ad63c9458
Implemented: force python 2 or 3 with ability to switch during runtime
...
Simultaneous python2 and python3 support, switchable during runtime
calling a function as well as setting a variable in .vimrc! Closes
issues #200 and #210 (which gave the idea for this commit, thank you
@Shtucer).
2013-12-13 20:51:24 +01:00
Justin M. Keyes
17bfd3b276
fix #223 : nnoremap instead of noremap
...
- mapping operator-pending-mode and selection-mode has undesirable
side-effects, and isn't actually used by jedi-vim.
- also, wrap 'for' loops in s:init() functions to avoid polluting the
global namespace ('for key in keys' assigns g:key).
2013-12-06 15:00:38 -05:00
LittleQ
ec405fa3b2
fixed type and set default value to 1 to avoid testing error
2013-09-15 00:20:20 +08:00
LittleQ
1c24594c70
added split support for goto action
2013-09-14 23:33:40 +08:00
Sheng Yun
f082e2b75a
force jedi.vim's fileencoding to utf-8
2013-09-10 11:20:33 +08:00
David Halter
fe3840770a
don't use the call_signatures_func
2013-08-28 20:00:35 +04:30
David Halter
48d0370387
completion tests
2013-08-28 19:44:56 +04:30
David Halter
dd426c6369
change some more complete_string details
2013-08-28 19:36:57 +04:30
David Halter
3934359666
also move popup_on_dot_string method
2013-08-28 19:01:30 +04:30
David Halter
3ce655f428
autocomplete function simplified, #136
2013-08-28 15:42:02 +04:30
David Halter
505c067c54
fix problems with relocating plugin (did it the wrong way around
2013-08-28 09:40:23 +04:30
David Halter
e534aeee4b
move jedi_vim.py to main folder
2013-08-27 21:49:51 +04:30
David Halter
178b064821
better warning when python is not available
2013-08-27 21:30:19 +04:30
David Halter
eae610a88d
move also the whole python initialization away from plugin.vim
2013-08-27 21:25:05 +04:30
David Halter
c1ec986732
move defaults initialization to autoload
2013-08-27 21:18:24 +04:30
David Halter
c4980738bd
cleanup
2013-08-27 20:28:51 +04:30