mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
shorten settings section
This commit is contained in:
51
README.rst
51
README.rst
@@ -79,8 +79,8 @@ On Arch Linux, you can also install jedi-vim from AUR: `vim-jedi
|
|||||||
<https://aur.archlinux.org/packages/vim-jedi/>`__.
|
<https://aur.archlinux.org/packages/vim-jedi/>`__.
|
||||||
|
|
||||||
|
|
||||||
Options
|
Settings
|
||||||
=======
|
========
|
||||||
|
|
||||||
Jedi is by default automatically initialized. If you don't want that I suggest
|
Jedi is by default automatically initialized. If you don't want that I suggest
|
||||||
you disable the auto-initialization in your ``.vimrc``:
|
you disable the auto-initialization in your ``.vimrc``:
|
||||||
@@ -96,31 +96,14 @@ are automatically initialized, but you can change all of them:
|
|||||||
|
|
||||||
let g:jedi#auto_vim_configuration = 0
|
let g:jedi#auto_vim_configuration = 0
|
||||||
|
|
||||||
``goto_assignments`` is by default on ``<leader g>``:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#goto_assignments_command = "<leader>g"
|
|
||||||
|
|
||||||
``goto_definitions`` is by default on ``<leader d>``:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#goto_definitions_command = "<leader>d"
|
|
||||||
|
|
||||||
Showing the pydoc documentation is by default on ``K``:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#documentation_command = "K"
|
|
||||||
|
|
||||||
If you are a person who likes to use VIM-buffers not tabs, you might want to
|
If you are a person who likes to use VIM-buffers not tabs, you might want to
|
||||||
put that in your ``.vimrc``:
|
put that in your ``.vimrc``:
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
let g:jedi#use_tabs_not_buffers = 0
|
let g:jedi#use_tabs_not_buffers = 0
|
||||||
|
|
||||||
|
|
||||||
Jedi automatically starts the completion, if you type a dot, e.g. ``str.``, if
|
Jedi automatically starts the completion, if you type a dot, e.g. ``str.``, if
|
||||||
you don't want this:
|
you don't want this:
|
||||||
|
|
||||||
@@ -128,36 +111,26 @@ you don't want this:
|
|||||||
|
|
||||||
let g:jedi#popup_on_dot = 0
|
let g:jedi#popup_on_dot = 0
|
||||||
|
|
||||||
Jedi selects the first line of the completion menu: for a better typing-flow and
|
Jedi selects the first line of the completion menu: for a better typing-flow
|
||||||
usually saves one keypress.
|
and usually saves one keypress.
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
let g:jedi#popup_select_first = 0
|
let g:jedi#popup_select_first = 0
|
||||||
|
|
||||||
There's some support for refactoring:
|
Here are a few more defaults for actions, read the docs (``:help jedi-vim``) to
|
||||||
|
get more information. You can change them
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#rename_command = "<leader>r"
|
|
||||||
|
|
||||||
And you can list the usages of a name:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
|
let g:jedi#goto_assignments_command = "<leader>g"
|
||||||
|
let g:jedi#goto_definitions_command = "<leader>d"
|
||||||
|
let g:jedi#documentation_command = "K"
|
||||||
let g:jedi#usages_command = "<leader>n"
|
let g:jedi#usages_command = "<leader>n"
|
||||||
|
|
||||||
If you want to change the default autocompletion command:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#completions_command = "<C-Space>"
|
let g:jedi#completions_command = "<C-Space>"
|
||||||
|
let g:jedi#rename_command = "<leader>r"
|
||||||
|
let g:jedi#show_call_signatures = "1"
|
||||||
|
|
||||||
By default jedi-vim will display call signatures. If you don't want that:
|
|
||||||
|
|
||||||
.. code-block:: vim
|
|
||||||
|
|
||||||
let g:jedi#show_call_signatures = "0"
|
|
||||||
|
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
|
|||||||
Reference in New Issue
Block a user