Commit Graph
100 Commits
Author SHA1 Message Date
Christian Brabandt 9a2ed35ff9 tabline: do not confuse Vim
looks like this:
```
let a=(condition ? s:var:'')
```
confuses older Vims and it complains about a missing colon. So make
parsing a bit easier and add a space in front of the second colon.

fixes #1629
2018-01-08 13:46:08 +01:00
Christian Brabandt 02816a3cb6 tabline: missing spaces
commit ab49a1c7ae changed that no leading whitespace was added.
While this removed a double space in front of the current active
selected buffer, it removed one space too much for the non-current
buffers in the bufferline.

So partly reverse it and only add the space, if the highlighting groups
between each item did not change.
2018-01-08 09:48:36 +01:00
Christian Brabandt 182675dc10 tabline: revert default buffer_idx_mode
commit 2e3cdeb unintentionally changed the default for the
buffer_idx_mode in the tabline.

Revert it back to be disabled by default

fixes #1628
2018-01-07 09:51:08 +01:00
Christian Brabandt ab49a1c7ae tabline: do not add extra space before buffer name
there was a space too much added in the tabline. Fix that
2018-01-05 22:13:47 +01:00
Christian Brabandt 5db4c408bd Update copyright notifications 2018-01-05 10:37:59 +01:00
Christian Brabandt 6c4f3277f1 Add missing scriptencoding 2018-01-05 10:26:38 +01:00
Christian Brabandt 6cdcaf13b1 cursormode: disable by default
fixes #1625
2018-01-05 08:12:35 +01:00
Christian Brabandt 3a2323feac branch: shorten default master for smaller windows 2018-01-05 08:12:10 +01:00
Christian Brabandt c76019ac9e Safety: Make sure g:airline_theme is defined before using it
fixes #1624
2018-01-04 23:54:12 +01:00
Christian Brabandt a90ac37cb3 Changelog: slightly reorded items 2018-01-04 23:37:10 +01:00
Christian Brabandt 2ef81d4140 Changelog: Add links to the issues 2018-01-04 23:33:30 +01:00
Christian Brabandt 3b5f2bd470 async: Todo: Check if cwd option for Vim 8 is needed 2018-01-04 23:29:15 +01:00
Christian Brabandt 88130fd377 Updated Changelog 2018-01-04 23:27:05 +01:00
Christian Brabandt c17ad9a123 Merge pull request #1426 from lynnard/master
Fix problems with AirlineSelect{Prev,Next}Tab
2018-01-04 21:15:00 +01:00
Christian Brabandt 73d8abff2f Merge pull request #1617 from kyleholzinger/master
Add formatter for js files
2018-01-04 21:14:00 +01:00
Christian Brabandt 4d0233ebdb plugin: correctly re-init on :syn-enable
should fix #1590 correctly
2018-01-04 21:09:26 +01:00
Christian Brabandt d283a25e3f tabline: only show buffer label, if they were drawn
closes #1558
2018-01-04 20:56:09 +01:00
Christian Brabandt ce83c39bed tabline: allow custom formatter for tabnr_type
closes #1418
2018-01-04 20:41:55 +01:00
Christian Brabandt 133a76d2d4 plugin: reset syntax highlighting on :syn off
hopefully fixes #1590
2018-01-04 20:07:15 +01:00
Christian Brabandt c518f79aab tabline: allow to show buffers label at start 2018-01-04 19:38:07 +01:00
Christian Brabandt 9d28f0dcc7 tabline: allow to show current buffer/tab at first position
This will make highlighting more consistent. Always first item is the
one where the cursor is.
2018-01-04 19:32:29 +01:00
Christian Brabandt 30652c05c4 tabline: correct order of tab/buffer labels 2018-01-04 19:09:02 +01:00
Christian Brabandt 90cf752c90 tabline: add separate highlight group for labels 2018-01-04 18:57:28 +01:00
Christian Brabandt 3b631ef0c4 tabline: refactor label function 2018-01-04 18:43:03 +01:00
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 a25757ac64 tabline: Allow an alternate style for bufferlist
fixes #1608
2018-01-04 15:45:36 +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
Christian Brabandt c386332570 Merge pull request #1619 from tracyone/doc
doc: update ctrlp.vim url
2017-12-28 11:20:23 +01:00
Christian Brabandt 125d3443e4 Merge pull request #1620 from Cimbali/master
Cache file names in fugitiveline extension
2017-12-28 11:20:05 +01:00
Christian Brabandt bc985301db Merge pull request #1603 from Cimbali/master
Improve fugitive integration
2017-12-21 09:09:44 +01:00
Christian Brabandt 6c8d0f5e6a Merge pull request #1605 from EdwardBetts/patch-2
Correct spelling mistake.
2017-11-27 09:27:58 +01:00
Christian Brabandt 77ab703a55 Merge pull request #1604 from EdwardBetts/patch-1
Correct spelling mistake.
2017-11-27 09:27:40 +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
Christian Brabandt d719d0664a Merge pull request #1602 from jreybert/dev/vimagit
vimagit: let vimagit itself returns the current mode
2017-11-20 13:57:42 +01:00
Christian Brabandt 4a1f65841c README: mention how to use pack feature for install
fixes #1594
2017-11-15 08:06:17 +01:00
Christian Brabandt 1f84ad886c README: still some problems 2017-11-15 07:58:22 +01:00
Christian Brabandt c88dca5c96 README: still some problems with the table
(I hate markdown)
2017-11-15 07:54:50 +01:00
Christian Brabandt dd368b3e31 README: one more fix for the table 2017-11-15 07:51:48 +01:00
Christian Brabandt 20a6fe2b9f README: Fix table 2017-11-14 23:44:52 +01:00
Christian Brabandt f3aae5f72b README: show a screenshot and document what this plugin does
fixes #1589
2017-11-14 23:43:04 +01:00
Christian Brabandt 52ce640534 startup: remove workaround for skipping redraw
commit 7d082c03b2 added a workaround to skip
a few redraws on startup so that the intro message is not shown anymore.

However might cause problems, that some highlighting groups are not
correctly set. Also recent Vims (8.0.1290 and so on) do not seem to
suffer from the problem that an too early initializiation of airline
causes a redraw which skips the intro message.

Therefore, revert that commit.

Fixes #1585
2017-11-14 23:38:32 +01:00
Christian Brabandt 396cc92261 Merge pull request #1578 from ompugao/tabline_collapse_fname
collapse fname in tabline when using unique_tail formatter
2017-11-06 08:19:04 +01:00
Christian Brabandt a1b7479b54 Merge pull request #1584 from Taikuh/wordcount_format
Add option to change wordcount display for the default formatter
2017-10-25 21:27:23 +02:00
Christian Brabandt e72ec51e59 Merge pull request #1582 from 0x6a62/doc-typo
Fix typo
2017-10-23 08:57:57 +02:00
Christian Brabandt 6e2a9e38cd tabline: force redraw on BufAdd autocommands
closes #1580
2017-10-19 11:37:24 +02:00
Christian Brabandt a5d9a4bcb2 Merge pull request #1577 from ompugao/skip_toggling_ctrlspace_if_not_installed
skip toggling ctrlspace tabline plugin when not installed
2017-10-16 10:57:20 +02: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
Christian Brabandt bd613e69b6 Merge pull request #1569 from yehuohan/master
Fix: Use the CS-symbol of ctrlspace which may be changed by user in ctrlspace-extension
2017-09-27 13:21:10 +02:00
Christian Brabandt 031cb31056 branch: do not show errors for mq extensions
skip anything that matches abort

e.g. running hg qtop with Vims path outside of the repository returns
something like "abort: no repository found in ..."
in that case, do not show anything.
2017-09-22 21:39:17 +02: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
Christian Brabandt cfb107c75f Merge pull request #1564 from gidj/vcs-patch-fix
Use regex matching to prevent message from bubbling up
2017-09-18 19:54:38 +02:00
Christian Brabandt 8a3e3e2794 mq: remove trailing \n from system()
fixes #1563
2017-09-14 11:43:53 +02:00
Christian Brabandt ea46192561 README: remove laststatus section
closes #1560
2017-09-05 07:25:26 +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 571f892fcd README: mention how to fix performance problems 2017-09-01 12:01:43 +02:00
Christian Brabandt cdaa5117b0 highlighter: also return bold flag 2017-09-01 11:25:37 +02:00
Christian Brabandt e7a5c97df1 readonly: remove modifiable check 2017-09-01 09:19:39 +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 f0a508b121 async: nvim: use generic output handler 2017-08-30 13:15:55 +02:00
Christian Brabandt 942458f19b async: include stderr output in job output (Nvim)
references #1551
2017-08-29 12:56:15 +02:00
Christian Brabandt d3f8873469 async: fix error, when mq is not enabled
fixes #1551
2017-08-29 12:47:29 +02:00
Christian Brabandt 09ab45a2fb async: add missing comma
fixes #1550
2017-08-29 11:53:20 +02:00
Christian Brabandt 195f2e1dae keymap: fix missing keymap symbol, fix wrong condition 2017-08-27 21:29:40 +02:00
Christian Brabandt 97f3f84881 Merge pull request #1549 from doronbehar/fix-doc-syntax2
Small fixes to syntax in documentation.
2017-08-27 20:58:19 +02:00
Christian Brabandt 3b225a1322 keymap: add some more missing parts, fix missing printf 2017-08-26 21:14:35 +02:00
Christian Brabandt f430246aff keymap: add missing part from #1546 2017-08-26 18:18:45 +02:00
Christian Brabandt 57cda93aad keymap: fix the style 2017-08-26 18:14:08 +02:00
Christian Brabandt 20de588fd1 Merge pull request #1547 from kaidiren/master
fix: refresh airline when airline_skip_empty_sections enabled in plugin in ale
2017-08-26 15:43:21 +02:00
Christian Brabandt db907f5598 async: new function for validating directory
references #1544
2017-08-26 08:04:44 +02:00
Christian Brabandt 3e25ca5a5a async: Check directory before starting the job (Neovim)
fixes #1544
2017-08-26 07:58:39 +02:00
Christian Brabandt e357f88de6 async: define config variable for older vims
references #1542
2017-08-25 18:50:15 +02:00
Christian Brabandt f4caf598fa async: only use nvim functions, when actually using neovim
closes #1542
2017-08-25 16:48:45 +02: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
Christian Brabandt ab6acdee41 Merge pull request #1539 from icymind/master
add option 'keymap_ignored_filetypes' for tabline extensions
2017-08-24 18:15:18 +02: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 2c05a48a26 async: Add comments, better conditions to detect vim/nvim 2017-08-23 18:37:26 +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
Christian Brabandt a01d03a78a branch: only do mq check once
but reset the check variable on Shell commands and when :AirlineRefresh
was called.

should make vim more performant

references #1536
2017-08-23 18:28:48 +02:00
Christian Brabandt 3ec22a524c branch: comment why the argument is not used for update_hg_branch 2017-08-23 18:23:28 +02:00
Christian Brabandt 8cd7e35027 branch: correctly reset cache variables 2017-08-23 18:03:23 +02:00
Christian Brabandt e553433430 branch: when mq is disabled, do not run hg qtop anymore 2017-08-23 18:01:41 +02:00
Christian Brabandt 5147d385a5 branch: cache filename path
fixes #1536
2017-08-23 17:56:57 +02:00
Christian Brabandt 232b6415d9 tagbar: do not error out, if autoloaded function does not exist
tagbar is not loaded if filetype plugin is off, so do not try to call a
non-existent function than.
2017-08-23 15:54:06 +02:00
Christian Brabandt e8b6312dd9 Backout the wrong commit for checking async feature in nvim
fixes #1532
2017-08-21 22:22:19 +02:00
Christian Brabandt 04bc544db2 po: rename variable correctly and add g: prefix 2017-08-21 21:29:16 +02:00