Christian Brabandt
3985ece131
tabline: add [buffers]/[tabs] labels consistently
...
previously, when both tabs and buffers were displayed in the tabline, it
was not immediately obvious which side belongs to a buffer and which one
to a tab. Therefore, add [buffers]/[tabs] labels consistently.
2018-01-04 18:34:48 +01:00
Christian Brabandt
45878a7947
tabline: remove l: prefix of function variables
2018-01-04 18:29:51 +01:00
Christian Brabandt
503b9977fb
tabline: refactor s:variables
2018-01-04 18:20:25 +01:00
Christian Brabandt
69aa1e93b3
tabline: add more try/catch for mappings
...
similar to 2e3cdeb808
add a couple of more try catch statements
around the map_keys() function
2018-01-04 18:15:40 +01:00
Christian Brabandt
645f65d8d9
ctrlspace: wrong separator
...
under certains circumstances it could happen that for the vim-ctrlspace
tabline extension a tabline group was redefined which would cause a
separator having foreground and background color swapped. This was
caused by using the 'pos' parameter for the right side wrongly.
fixes #1559
2018-01-04 18:07:03 +01:00
Christian Brabandt
45236ba7c7
ctrlspace: refactor s:variables
2018-01-04 17:27:34 +01:00
Christian Brabandt
d78f686ce5
tabline: remove some more s:vars
2018-01-04 14:35:10 +01:00
Christian Brabandt
6ba65b2c8c
tabline: remove s:show_tab_type variable
2018-01-04 14:30:16 +01:00
Christian Brabandt
708c76e22c
tabline: do not cache s:buffer_idx_mode
2018-01-04 14:23:50 +01:00
Christian Brabandt
d03c3fa7b9
tabline: remove l: variable prefix
2018-01-04 14:20:36 +01:00
Christian Brabandt
72e457d8c2
tabline: remove static caching of s:vars
...
rather let them be defined whenever they are needed. They were only used
inside a single function anyhow, so it does not make sense to cache
them. In addition, having the user later change the variable won't work
as expected.
2018-01-04 14:11:13 +01:00
Christian Brabandt
2e3cdeb808
tabline: try/catch mapping of the keys
...
fixes #1621
2018-01-04 14:11:11 +01:00
Cimbali
18da5aa699
Separate updating and displaying branch information
...
This will cause any calls that are not just head() to be delayed and
cached whenever possible.
2017-12-26 22:30:23 +01:00
Cimbali
1ee057362d
Caching path simplified using fugitive
2017-12-26 22:30:23 +01:00
Cimbali
e0dd3d8125
Rename merge file names
...
Clearer names that reference the HEADs of git: FETCH_HEAD, ORIG_HEAD and
MERGE_HEAD, rather than the names that fugitive uses for them.
2017-12-23 15:05:59 +01:00
Christian Brabandt
bc985301db
Merge pull request #1603 from Cimbali/master
...
Improve fugitive integration
2017-12-21 09:09:44 +01:00
Edward Betts
3b304f36ae
Correct spelling mistake.
2017-11-25 21:14:31 +00:00
Cimbali
e415c5301f
Trusting fugitive instead of tracking paths manually
...
The initial reason in #237 is not valid anymore, as vim-gitgutter
functions as expected for editing files that are not part of a repo,
whether they are:
- in a different repo
- in a parent repo (cwd being a submodule)
- outside of the repo
Furthermore, removing this check allows to show relevant info for
specific fugitive file names that are fugitive://..../sha1//...
which are hard to parse manually, especially in complicated situations
such as submodules.
2017-11-22 23:55:22 +01:00
Cimbali
8c4bf37588
Configurability: parametrizable sha1 length
2017-11-22 23:01:54 +01:00
Cimbali
33663d7df2
Show buffer name relative to git folder
2017-11-22 23:00:58 +01:00
Cimbali
009f7932fb
Show #branch#head() as "ref-or-sha1(current-branch)"
...
Only changes anything in the case of using fugitive to show a file that
is not from the current working directory.
2017-11-22 23:00:57 +01:00
Cimbali
f0093ceaa6
Remove code redundant with fugitive#head()
...
It which requires a path, and just performed the same as
fugitive#head() does internally.
2017-11-22 19:25:26 +01:00
Christian Brabandt
3e13bab201
Merge pull request #1600 from PratikBhusal/patch-1
...
Add function to show line number
2017-11-20 13:58:21 +01:00
Jerome Reybert
640d6762f7
vimagit: let vimagit itself returns the current mode
...
If current vimagit version does not provide vimagit#get_current_mode(),
internal string version is kept.
2017-11-20 13:47:48 +01:00
Pratik Bhusal
58328b347c
Added function to show line number
...
The function shows the line number of the first error/warning that appears in the current buffer. If there are 20 warnings and the first warning exists on line 33, then vim-airline would show "W:20(L33)".
One can change how the line number is represented using: `g:airline#extensions#ale#open_lnum_symbol` and `airline#extensions#ale#close_lnum_symbol`
2017-11-18 14:24:47 -06:00
Shohei Fujii
b044b4b204
collapse fname in tabline when using unique_tail formatter
2017-10-30 20:00:05 +09:00
Taikuh
ccc4c9f430
Add option to change wordcount display for the default formatter
2017-10-26 01:02:10 +08:00
Christian Brabandt
6e2a9e38cd
tabline: force redraw on BufAdd autocommands
...
closes #1580
2017-10-19 11:37:24 +02:00
Shohei Fujii
7bf1d9b1fb
skip toggling ctrlspace tabline plugin
2017-10-16 17:33:40 +09:00
Christian Brabandt
27acd851a7
cleanup term extension
2017-09-27 20:28:18 +02:00
Christian Brabandt
0ad4f97c1a
Add a terminal statusline function for vim
2017-09-27 20:28:16 +02:00
yehuohan
4d645711e5
Fix: Use the CS-symbol of ctrlspace which may be change by user in ctrlspace-externsion
2017-09-27 16:17:50 +08:00
Christian Brabandt
9f186d899a
branch: mq patch not correctly displayed
...
also make the branch extension make use of the specific code to handle
the mq output
2017-09-22 21:37:28 +02:00
Gideon VanRiette
a763c6b53f
Catch trailing whitespace when matching output
2017-09-18 09:02:39 -05:00
Christian Brabandt
8a3e3e2794
mq: remove trailing \n from system()
...
fixes #1563
2017-09-14 11:43:53 +02:00
Christian Brabandt
81f089322a
keymap: allow to disable extension by checking config var
...
closes #1556
2017-09-03 21:18:01 +02:00
Christian Brabandt
9e3fcc4cdb
tagbar: only try loading the tagbar extension once
...
commit 232b641
did unfortunately disable tagbar completely, since
exists("*func") does not autoload the function.
So this time, try explicitly calling the function once, and if it does
not exists, it should be disabled and not cause any further errors.
closes #1555
2017-09-01 09:08:22 +02:00
Christian Brabandt
195f2e1dae
keymap: fix missing keymap symbol, fix wrong condition
2017-08-27 21:29:40 +02:00
Christian Brabandt
3b225a1322
keymap: add some more missing parts, fix missing printf
2017-08-26 21:14:35 +02:00
Christian Brabandt
57cda93aad
keymap: fix the style
2017-08-26 18:14:08 +02:00
Doron Behar
89e484ac59
Add keymap extension which shows keymap setting.
2017-08-26 18:09:20 +02:00
kaidiren
2b45581f1c
fix: refresh airline when airline_skip_empty_sections enabled in plugin ale
2017-08-26 19:00:40 +08:00
Christian Brabandt
42e5c82d64
Merge pull request #1535 from chrisbra/nvim_async
...
Improvement to async functionality
2017-08-25 14:37:47 +02:00
Christian Brabandt
5345c8fafa
denite: Check filetype in mode function
...
references #1540
2017-08-25 08:38:31 +02:00
Christian Brabandt
9bd2c40e7d
denite: remove FileType autocommand
...
closes #1540
2017-08-25 07:44:39 +02:00
icymind
b6a98bcd10
add option 'keymap_ignored_filetypes' for tabline extensions
2017-08-24 23:22:16 +08:00
Christian Brabandt
b77f326b33
async: rename variable
...
rename g:airline#init#async variable to g:airline#init#vim_async
because that is what it is for: showing whether vim supports async. Is
not set vor nvim, because nvim always supports jobs.
2017-08-23 18:38:19 +02:00
Christian Brabandt
06272275b5
fix po output not visible for nvim
...
Apparently, the output of msgfmt goes to stderr. So catch that one as
well.
2017-08-23 18:37:28 +02:00
Christian Brabandt
4c74a95045
Refactor async functions
...
- create a new async module
- refactor async functions from branch.vim and po.vim to async.vim
- support nvim async correctly
2017-08-23 18:37:24 +02:00
Christian Brabandt
50bfe8dd68
First commit to handle nvim specific async code
2017-08-23 18:31:43 +02:00