Commit Graph

66 Commits

Author SHA1 Message Date
Konfekt
8c7161f4e9 prefer popup over preview window 2022-11-10 15:55:13 +01:00
Dave Halter
74fd73d017 Added an undocumented JediLoadProject for now 2020-08-01 13:32:48 +02:00
Dave Halter
e23687462b Implement :JediChooseEnvironment 2020-07-31 15:06:09 +02:00
Dave Halter
717446dd71 For whatever reason tabs were used as indentation 2019-06-17 20:52:31 +02:00
Dave Halter
9c9a513aaf Add a goto_stubs command 2019-06-16 09:39:50 +02:00
Daniel Hahler
d3d9a91ae6 init: improve handling of import errors (#840)
* jedi_vim.jedi_import_error: add location

This is useful for debugging.  It contains e.g. the path to parso, if
importing failed from there.

Example:

> Error: jedi-vim failed to initialize Python: jedi#setup_python_imports: could not import jedi: cannot import name 'PythonTokenTypes' (in /…/jedi-vim/pythonx/jedi/jedi/api/completion.py:1). (in function jedi#init_python[3]..<SNR>44_init_python[27]..jedi#setup_python_imports, line 37)

* init: handle jedi_vim.jedi_import_error in Vim plugin

Using `set shortmess+=F` would suppress the `:echom` used in
`jedi_vim.no_jedi_warning` [1].

This patch makes `jedi#setup_python_imports` handle the error instead.

1: https://github.com/neovim/neovim/issues/8675

* Revisit error handling with loading jedi_vim

* jedi#debug_info: display parso submodule separately

* Fix jedi#reinit_python

* fixup! Revisit error handling with loading jedi_vim

* display_debug_info: handle exceptions with environment.get_sys_path

* fixup! Revisit error handling with loading jedi_vim

[ci skip]
2018-07-04 22:12:07 +02:00
Daniel Hahler
82661d515b Fix restoring alternate terminal with completeopt redirection
Fixes https://github.com/davidhalter/jedi-vim/issues/721.
2017-08-07 20:34:10 +02:00
Daniel Hahler
6411de0cd1 auto_vim_configuration: improve check for changed completeopt setting
The user might want to use the default actually.
2017-06-10 12:38:33 +02:00
Daniel Hahler
2ee9ec64d3 Improve GitHub issue template and JediDebugInfo 2017-03-01 23:52:55 +01:00
Daniel Hahler
ac6756a466 Fix default of jedi#auto_vim_configuration back to 1 (#682)
This was broken in eba90e6.
2017-02-17 22:11:21 +01:00
Daniel Hahler
eba90e615d Style fixes (via vint) (#662)
This also adds a augroup for `jedi#add_goto_window`.
2017-01-29 11:55:55 +01:00
Daniel Hahler
12db7ad364 Add JediClearCache command
This can be used to work around issues like
https://github.com/davidhalter/jedi/issues/784.
2016-10-06 19:15:52 +02:00
Daniel Hahler
ed09c7c1af Add JediDebugInfo command: display used Python version
This command is meant to come in handy to debug problems with jedi-vim.
For now, it will display the Python version that jedi-vim is using.
2015-08-19 23:57:29 +02:00
Daniel Hahler
83d398bc5d auto-config: set completeopt only if it's the default
The setting is also moved from "ftplugin" to "plugin", which allows for
easier customization, e.g. via a FileType plugin.

Ref: https://github.com/davidhalter/jedi-vim/issues/374#issuecomment-97621368
2015-04-30 02:37:36 +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
c9c0198467 Settin nocompatible and filetype pluin n should be part of a jedi#auto_vim_configuration check. Fixes #373. 2015-03-25 14:05:01 +01:00
David Halter
36e84dd112 jedi-vim doesn't work in compatible mode 2013-08-28 17:10:26 +04:30
David Halter
b9154c7353 plugin is now almost empty, fixes #113 2013-08-27 21:29:45 +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
ac754b4785 add unused auto-initialization (Python is not a valid filetype) 2013-08-27 11:29:31 +04:30
Zekeriya Koc
7245dff650 fixed variable typo in deprecation function 2013-08-25 17:58:08 +03:00
David Halter
a9c654fe48 added a way to disable completions, as mentioned in #166 2013-08-24 21:22:04 +04:30
David Halter
100e1ed8cd move py_import function finally to jedi_vim.py 2013-08-22 11:49:08 +04:30
David Halter
c58fc7c952 moved some Pyimport stuff to autoload and added a new_buffer option 2013-08-22 11:27:38 +04:30
David Halter
748a47e6e9 Pyimport command should respect tab setting 2013-08-22 10:47:13 +04:30
David Halter
a74c3bd29a fix a few remaining name problems, that have been forgotten 2013-08-20 16:19:42 +04:30
David Halter
6ed0b78c90 deprecate a lot of old definitions how to use functions, use instead the names of jedi functions 2013-08-20 16:17:39 +04:30
David Halter
6ee05f976d use call_signature_escape instead of the old function_definition_escape, to be compatible with jedi 2013-08-20 15:13:55 +04:30
David Halter
00814ef58d completions instead of complete 2013-08-20 15:01:09 +04:30
David Halter
e01eadb9ed automatically initialize filetype plugin on 2013-08-19 15:27:40 +04:30
David Halter
33b58d894c removed an old description 2013-08-05 16:40:48 +04:30
heavenshell
9c3e9dbe03 Fix goto() deprecation. 2013-06-01 00:59:49 +09:00
heavenshell
cf3182e549 Fix complete() deprecation. 2013-06-01 00:27:14 +09:00
David Halter
b9fef7b969 renamed Pyedit to Pyimport, refs #117 2013-05-19 00:25:00 +04:30
David Halter
e8e1cc7d47 improve indentation of #117 2013-05-18 21:53:44 +04:30
Marcin Szamotulski
422ad483c1 g:jedi#quickfix_window_height
This commit adds an option g:jedi#quickfix_window_height, with the
    default value 10 (as this is the default value for :copen)
2013-03-17 13:47:17 +00:00
Marcin Szamotulski
165dea0a2c added :Pyedit vim command
:Pyedit [++opt] [+cmd] module

    module is a python module, there is a completion for them as well.
    [opt] and [cmd] are like for the :edit command.
2013-03-17 13:32:04 +00:00
York Wong
ed8dcf6f5d Fix #80 "Not an editor command: Python << PYTHONEOF" 2013-02-05 17:35:45 +08:00
Jean-Louis Fuchs
f234bf4376 Select first line of completion popup. Improves typing flow and saves one keypress. 2013-01-21 18:08:19 +01:00
David Halter
3c55a4bed6 Python alias works now 2013-01-07 00:28:37 +01:00
David Halter
30ea569cd8 python -> Python 2013-01-06 23:59:10 +01:00
David Halter
b63454ebd4 add a Python command that is able to execute python3 and python2 2013-01-06 23:55:24 +01:00
Danilo Bargen
c92233e42f Check for +python3 as well (refs #66) 2013-01-06 14:26:44 +01:00
Emily Strickland
3bbc8d4c57 Setting to let user silence +python error.
If the user kicks off a version of vim with the jedi-vim plugin without
having Python support compiled in, it gives an error which halts vim
from starting up until it is dismissed. This commit adds a way to opt
out of that warning for people who use the same configuration and
plugins on different machines and different versions of vim.
2013-01-03 21:32:23 -08:00
David Halter
730c98ff67 add autocompletion_command default -> fixes #51 2012-12-18 17:14:58 +01:00
David Halter
704c1c2553 added auto configuration of VIM setting -> fixes #52 2012-12-18 16:46:28 +01:00
David Halter
8813b2312e Merge pull request #35 from mattn/delay_load
delay load python module. this change make bits faster.
2012-10-31 06:22:06 -07:00
mattn
ed5aa85eb9 remove needless empty line. 2012-10-31 09:30:55 +09:00
mattn
e6b22f8450 don't set switchbuf option until python filetype is loaded. 2012-10-31 09:21:27 +09:00