Commit Graph

18 Commits

Author SHA1 Message Date
Christian Brabandt
bf5d785932
virtualenv: Enable for additional filetypes beside python
So with https://github.com/jmcantrell/vim-virtualenv you can display the
virtualenv in your statusline section (if you have enabled it). However
it would only become active for python buffers.

Now perhaps you want to show the virtualenv also in other filetypes like
markdown or CI scripts, so allow this by adding a variable
`airline#extensions#virtualenv#ft'` to the list of filetypes you want to
have enabled. So set:

    let g:airline#extensions#virtualenv#enabled = 1
    let g:airline#extensions#virtualenv#ft = ['python', 'markdown']

To allow displaying the virtual environment for python and markdown
buffers (but remember you need to have the plugin
https://github.com/jmcantrell/vim-virtualenv installed as well!)

fixes #2483
2021-12-08 11:23:42 +01:00
Bailey Ling
5601c0928e Happy new year! 2021-01-01 12:57:00 +00:00
kazukazuinaina
fab1ee3117 [update] license's year in airline's extension 2020-06-11 05:26:04 +09:00
Christian Brabandt
664426be21
doc: mention all supported plugins
Also, in the extensions mention the required vim plugin
2019-11-08 20:18:04 +01:00
Christian Brabandt
c8a36e14e9
Updated Copyright Statements 2019-03-25 12:29:47 +01:00
Christian Brabandt
5db4c408bd
Update copyright notifications 2018-01-05 10:37:59 +01:00
thawk
45d77ca909 Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
Christian Brabandt
7ace10651f Make the virtualenv extension work better
This fixes #511

It allows the virtualenv plugin to call back and tell the airline plugin
to update the statusline. Therefore, the new function
airline#extensions#virtualenv#update() is provided. However, to properly
fix this issue, the virtualenv plugin needs to call this function.

Second, depending on $VIRTUAL_ENV is not safe, since the virtualenv
plugin might define it itsself when calling :VirtualEnvActivate
Therefore skip this test and just test for existance of he
:VirtualEnvList command.
2016-01-20 20:02:21 +01:00
Bailey Ling
048b24a916 happy 2016! 2016-01-14 21:38:38 -05:00
Bailey Ling
1ca6ffb6d0 happy 2015
resolves #692.
2015-02-13 21:47:43 -05:00
Kevin Chen
4878fab120 Add a virtualenv fallback when vim-virtualenv is not presented 2014-11-21 23:39:39 +08:00
Bailey Ling
baed8ac063 happy 2014 2014-01-19 23:44:44 -05:00
bling
bfe35ed76c replace all instance of space with the no-break space. resolves #256. 2013-09-22 11:29:27 -04:00
Bailey Ling
3a5a40730a check guard for all extensions. resolves #241. 2013-09-10 15:40:54 +00:00
Zekeriya Koc
2be030b7e8 file type check converted to pattern match
so extension will be enabled for file types like python.django etc.
2013-08-27 10:40:29 +03:00
Bailey Ling
3595debb97 move virtualenv to the right side, so tagbar function names don't shift it all over the place. 2013-08-25 11:51:32 -04:00
joe di castro
f37eeeb9af A better integration of virtualenv to avoid override other extensions 2013-08-25 17:14:12 +02:00
joe di castro
f0df8825df add virtualenv extension 2013-08-24 22:49:54 +02:00