mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
Update docs with new module paths
This commit is contained in:
parent
b7d8495b9c
commit
84edefbe2e
@ -246,10 +246,10 @@ Segments
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
Segments are written in Python, and the default segments provided with
|
Segments are written in Python, and the default segments provided with
|
||||||
Powerline are located in
|
Powerline are located in :file:`powerline/segments/{extension}.py`.
|
||||||
:file:`powerline/ext/{extension}/segments/{module}.py`. User-defined segments
|
User-defined segments can be defined in any module in ``sys.path`` or
|
||||||
can be defined in any module in ``sys.path`` or :ref:`paths common configuration
|
:ref:`paths common configuration option <config-common-paths>`, import is
|
||||||
option <config-common-paths>`, import is always absolute.
|
always absolute.
|
||||||
|
|
||||||
Segments are regular Python functions, and they may accept arguments. All
|
Segments are regular Python functions, and they may accept arguments. All
|
||||||
arguments should have a default value which will be used for themes that
|
arguments should have a default value which will be used for themes that
|
||||||
|
@ -104,7 +104,7 @@ Vim statusline
|
|||||||
If Powerline is installed as a Python package, you can enable the vim plugin
|
If Powerline is installed as a Python package, you can enable the vim plugin
|
||||||
by adding the following line to your ``vimrc``::
|
by adding the following line to your ``vimrc``::
|
||||||
|
|
||||||
python from powerline.ext.vim import source_plugin; source_plugin()
|
python from powerline.bindings.vim import source_plugin; source_plugin()
|
||||||
|
|
||||||
If Powerline is installed somewhere other than Python's site-packages
|
If Powerline is installed somewhere other than Python's site-packages
|
||||||
directories you'll have to source the vim plugin file with an absolute path
|
directories you'll have to source the vim plugin file with an absolute path
|
||||||
@ -113,7 +113,7 @@ to the plugin location.
|
|||||||
Add the following line to your ``vimrc``, where ``{path}`` is the path to
|
Add the following line to your ``vimrc``, where ``{path}`` is the path to
|
||||||
the main Powerline project directory::
|
the main Powerline project directory::
|
||||||
|
|
||||||
source {path}/powerline/ext/vim/source_plugin.vim
|
source {path}/powerline/bindings/vim/source_plugin.vim
|
||||||
|
|
||||||
Terminal prompts
|
Terminal prompts
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user