Commit Graph
100 Commits
Author SHA1 Message Date
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
Christian Brabandt 5fc5a43802 init: rename variable 2017-08-21 21:26:35 +02:00
Christian Brabandt c2b2351d99 async: Better check for nvim
closes neovim/neovim#7186
2017-08-21 21:23:34 +02:00
Christian Brabandt 470e9870f1 highlighter: do not consider 0 to be empty
fixes #1531
2017-08-20 22:47:02 +02:00
Christian Brabandt e5f9ccad8e terminal: use mode() to detect terminal mode
workaround with index(term_list(), bufnr('')) > -1 not needed anymore,
since vim 8.0.936 will correctly return 't' for the mode() function in
the terminal.
2017-08-20 22:47:00 +02:00
Christian Brabandt 3535243c50 Merge pull request #1528 from doronbehar/fix-doc-syntax
Small fixes to syntax in help file.
2017-08-17 13:41:06 +02:00
Christian Brabandt d8eb12845f hunks: do not cache for changes plugin 2017-08-14 08:13:19 +02:00
Christian Brabandt a8c4424244 highligthing: Enable cacheing only when config is set.
This enables the highlighting caching only when the variable
g:airline_highlighting_cache is set to 1

Should make airline faster and more performant, because we can save a
lot of expensive C core calls. However, when redefining highlighting
groups, it might not correctly reset the cache.
2017-08-14 08:06:53 +02:00
Christian Brabandt 6ee75bdbde Fix failing tests 2017-08-11 12:55:44 +02:00
Christian Brabandt a96681d459 highlighter: Cache syntax highlighting attributes
Should in theory improve performance by quiet a lot.
2017-08-11 11:26:35 +02:00
Christian Brabandt e9a7a12d9e highlighter: improve performance of get_array() function 2017-08-11 11:05:56 +02:00
Christian Brabandt c65d7fe36b highlighter: slight performance increase
do not access get() function twice. We can assign the result to a
variable and use it a second time. Should speed up the highligther part
of the code by a bit.

Since I was already touching s:Get(), also get rid of the default
parameter, as it always has been the empty string.
2017-08-11 10:46:03 +02:00
Christian Brabandt 96352f9b53 doc: fix typo 2017-08-08 16:03:11 +02:00
Christian Brabandt 2ec563bd57 syntastic: slightly tweak output format
also document how to use different syntastic statusline format

closes #1525
2017-08-08 14:57:04 +02:00
Christian Brabandt 83ceae726e syntastic: display line number for errors/warnings
line number was omitted from 2e3055541e, so add it back
in parenthesis.

fixes #1525
2017-08-08 12:59:15 +02:00
Christian Brabandt 711f50a567 Merge pull request #1524 from tenfyzhong/master
Fixes #1515. The tabline will no update when use ctrlspace together.
2017-08-08 09:34:11 +02:00
Christian Brabandt 4e24036782 Merge pull request #1523 from rlue/hotfix
Hotfix: Autoswitch theme for colorschemes with funny casing (like PaperColor)
2017-08-07 07:46:19 +02:00
Christian Brabandt a2e20bc3ca spell: Display spelling language
fixes: #1521
2017-08-01 19:25:20 +02:00
Christian Brabandt 0c307d5f73 Better way to check for terminal buffer 2017-07-30 18:57:05 +02:00
Christian Brabandt d54613d2dd Check for existence of term_list()
fixes #1518
2017-07-30 18:55:52 +02:00
Christian Brabandt 846d85aaa1 main: support for Vims terminal mode
Currently this is a hack, to get terminal mode from Vim.

However there is no better solution yet, since the API is not stable
here. Until then, just use the hack with
index(term_list(), bufnr('')) > -1
2017-07-30 09:51:23 +02:00
Christian Brabandt 72e5f04f7c Merge pull request #1513 from rdnetto/master
Neomake integration: if loclist is empty, fallback to quickfix
2017-07-21 12:28:55 +02:00
Christian Brabandt 61c624ef6c unicode: Update Unicode extension
do not draw the complete statusline in a bright yellow. This might hurt
your eyes
2017-07-19 12:57:18 +02:00
Christian Brabandt e03afa1733 doc: linenr and maxlinenr are swapped in documentation
fixes #1507
2017-07-07 22:33:47 +02:00
Christian Brabandt afcda0510e Ale: Removing caching
fixes #1506
2017-07-06 12:14:49 +02:00
Christian Brabandt b78c2ec475 Always enable airline by setting laststatus=2
Previously the user was expected to set 'laststatus' himself to 2 if he
wanted to have airline be shown by default.

However it doesn't make much sense to have airline installed but not
display the statusline. Therefore, set the 'laststatus' to 2, if it
isn't set to it already.
2017-07-02 20:42:32 +02:00
Christian Brabandt 4f43e5c93d Merge pull request #1503 from d10n/git-hunk-empty
Fix git hunk status disappearance on CursorHold
2017-07-01 21:44:30 +02:00
Christian Brabandt 0205baa963 Merge pull request #1504 from d10n/fix-typo
Fix typo
2017-07-01 21:43:03 +02:00
Christian Brabandt 72ca1c344f Merge pull request #1502 from DavidAntaramian/master
Fix misspelling of trailing_fmt
2017-07-01 07:18:02 +02:00
Christian Brabandt a10d321809 whitespace: move s:variables around
Will make sure, that even after setting the whitespace extension
variables, they are taken correctly into account.
2017-06-30 21:37:37 +02:00
Christian Brabandt a914cfb754 backout b2f301f73c
Backout commit b2f301f73c

First of all, it caused flicker (which is caused by a Vim bug:
https://groups.google.com/d/msg/vim_dev/fdgPqmYZwOk/KJzR4l9wAwAJA)

and then the cache was not reset when editing a new file.

So let's just revert that commit, although it does affect performance.

fixes #1499
2017-06-28 21:10:57 +02:00
Christian Brabandt 313a6fcad2 tabline: prevent flicker on Windows
calling settabvar() while evaluating the 'tabline' setting apparently
causes flicker on Windows. Fall back to using `:let t:var` to store the
content in the current tabpage.

This is not as good as using `settabvar()` since we cannot store the
title for other tabs, but at least it should prevent the flicker and at
the same time at least cache the title for the current tabpage.
2017-06-27 18:28:28 +02:00
Christian Brabandt 825aec9e4d Revert "highlight: skip processing the same hi group twice"
This reverts commit feee9bcf3c.

It brakes CI and shouldn't be needed
2017-06-27 14:44:49 +02:00
Christian Brabandt 62952b3887 tabline: only map keys if not done yet
Should improve performance by not steadily remapping keys
2017-06-27 14:44:03 +02:00
Christian Brabandt b2f301f73c tabline: Cache title as tablocal variable 2017-06-27 14:40:31 +02:00