Michael Henry
e67b2847ea
Add the b:airline_whitespace_disabled feature.
...
If the per-buffer variable b:airline_whitespace_disabled is defined
and non-zero, whitespace checking will be disabled for that buffer.
2016-05-14 15:56:48 -04:00
Christian Brabandt
727208d766
Do not draw separators for empty sections
...
This is a little bit a hack, because by the time the separators are
added, it is not clear, if the following section is empty, therefore
we need to parse the content of the following section and eval the
expressions to find out, if this is empty
Remarks:
- catch all exceptions when eval'ing statusline
- make sure, that the seperators are highlighted
even when skipping empty regions (highlight group
names need to be adjusted)
- if a section is defined as empty, it will be removed completly from
the statusline. This means, it won't be called on the next update
and may not refresh properly (e.g. when the whitespace check
triggers, therefore, the whitesapce extension has to call an
explicit redraw whenever it is supposed to be refreshed)
2016-05-12 21:40:56 +02:00
John Byrne
a5fab144aa
Made c_like_langs customisable via g:airline#extenstions#c_like_langs
2016-04-20 20:44:50 +02:00
Adrian Cowan
066d936076
Add Java as an exception in mixed-indent-file
...
Java allows "/** */"-style comments; add it as an exception in mixed-indent-file.
2016-04-07 14:55:39 +10:00
Alexandros Tasos
dba50e9eea
Add CUDA as an exception in mixed-indent-file
2016-03-24 23:53:13 +02:00
Tayler Mulligan
c8048973cd
extensions#whitespace: fix .ld mixed indent false positive
...
Similar to #1065 and #1081 , adds link scripts to be excluded.
Adds a list containing C-like languages to ignore, which implement
multiline comments as:
/*
*
...
*/
Comment below filetype check reflects all exclusions (c-like)
2016-03-16 16:19:55 -07:00
Tri Nguyen
48423832d4
extensions#whitespace: fix false positive for check_mix_indent_file() for JS file
2016-03-07 22:22:07 -05:00
Frederic Chanal
8fde76dd63
extensions#whitespace: fix false positive for check_mix_indent_file()
...
This patch prevents check_mix_indent_file() form notifying a "mix-ident-file"
when working where C/CPP using space and comment like:
/**
* Some comment on the 1st column that shall not trigger check_indent_file()
*/
This kind of file can be found in linux kernel for example.
2016-02-26 14:29:51 +01:00
Christian Brabandt
1d072bf019
Do not check for mixed whitespace in Makefiles
...
Skip indent and mixed-indent-file check for Makefiles.
fixes #1017
2016-02-09 20:16:12 +01:00
Christian Brabandt
7352c8ee9e
Detect inconsistent mixed indentation in a file
...
This is an extension to the whitespace extension.
It can now detect, if there is mixed indentation used within a file,
e.g. (using space for indentation on some lines and using tabs on other
lines.
This fixes #560
2016-02-06 17:46:56 +01:00
Bailey Ling
b7a74b1748
remove deprecated variables
...
over 2 years is more than enough warning...
2016-01-28 09:54:14 -05:00
Christian Brabandt
453f4b759f
Allow to customize the trailing whitespace regexp
...
Currently, vim-airline uses hard-coded '\s$' to check for trailing
whitespace. However you might want to check for different values.
Therefore, set the variable
g:airline#extensions#whitespace#trailing_regexp to the required regexp
value.
closes #663
2016-01-27 14:18:28 +01:00
Bailey Ling
048b24a916
happy 2016!
2016-01-14 21:38:38 -05:00
Kazuo Teramoto
5c799511c9
Add check for long lines to extensions#whitespace
...
Check for lines > textwidth, disabled by default.
2015-10-05 11:40:55 -03:00
Bailey Ling
491b3335cd
Merge pull request #763 from h3xx/master
...
Fix grammatical error in comment
2015-05-19 21:11:48 -04:00
Dan Church
bb2d6d8436
Fix grammatical error in comment
2015-04-28 12:25:26 -05:00
Emil Renner Berthing
e6ca2ac58d
whitespace: add more lenient mixed whitespace algorithm
2015-04-14 19:01:08 +02:00
Bailey Ling
1ca6ffb6d0
happy 2015
...
resolves #692 .
2015-02-13 21:47:43 -05:00
Bailey Ling
13ee9f456a
address syntax errors
...
resolves #683
2015-01-03 19:38:17 -05:00
Bailey Ling
81430cbdf6
append to the existing value in case the user defined it.
2014-04-20 14:52:06 +00:00
Christian Brabandt
931367d9fb
Enable :AirlineToggleWhitespace,
...
even if g:airline#extensions#whitespace#enabled is disabled
2014-04-20 00:39:43 +02:00
Bailey Ling
e49eac95a3
add support for configurable whitespace checking algorithms and default it to the simplest one. resolves #484
2014-04-19 14:27:14 -04:00
Bailey Ling
abee990d30
handle cases where the augroup has not be defined yet. resolves #492
2014-04-19 14:16:36 -04:00
Davit Samvelyan
7b0d80050a
Now trailing tabs are also reported, fixed bug when trailings with mixed tabs and spaces were being reported as mixed indents, case when count of spaces at the end of tabbed indentation less then tabstop does not reported as mixed indent anymore.
2014-04-05 16:41:27 +05:00
Bailey Ling
d99112d6c6
improve whitespace detection. resolves #452 .
2014-03-09 21:58:42 -04:00
Bailey Ling
baed8ac063
happy 2014
2014-01-19 23:44:44 -05:00
Bailey Ling
df2f33d6a5
specify maximum for whitespace checking. resolves #378 .
2013-12-13 16:38:32 -05:00
Bailey Ling
31f36740c8
look up whitespace checks all the time. resolves #330 .
2013-11-03 14:03:52 -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
93b9fa7c75
fix spacing when both trailing/indent occurs.
2013-09-11 21:01:25 +00:00
farseer90718
e117af9dd0
Disable white space detection for unmodifiable buffers
2013-09-11 10:08:51 +08:00
Bailey Ling
2066410156
use at least 2 spaces to be considered an indent. fixes #177 .
2013-09-04 18:10:45 +00:00
Bailey Ling
54ec1f39ca
test some commands
2013-08-30 20:57:34 -04:00
Bailey Ling
c6d996d5ca
define the rest of the extensions.
2013-08-30 22:07:45 +00:00
Bailey Ling
6c5672d686
update documentation.
2013-08-28 02:36:12 +00:00
Bailey Ling
6fc8c00ef1
place syntastic and whitespace into parts.
2013-08-27 23:38:34 +00:00
Bailey Ling
d5d87d2cdc
reduce variable deprecation.
2013-08-27 14:12:03 +00:00
Bailey Ling
6dd4cd5423
clean up how symbols are defined.
2013-08-26 23:39:25 -04:00
Bailey Ling
358d4328f4
support formattable whitespace messages. resolves #185 .
2013-08-26 02:08:04 +00:00
Bailey Ling
a91dda01df
improve documentation for writing extensions, also add helper methods.
2013-08-25 15:39:14 +00:00
Bailey Ling
e8d0d24163
prefer function name instead of funcref.
2013-08-24 01:21:09 +00:00
Bailey Ling
95a46cc106
fix whitespace toggle command ( #177 ).
2013-08-23 16:42:55 +00:00
Jacob Walker
3920817442
Better toggling of powerline fonts
...
+ Check the value of airline_powerline_fonts not just existence
2013-08-22 09:14:17 -05:00
Bailey Ling
8452029e98
upgrade all funcrefs to support varargs.
2013-08-21 15:14:12 +00:00
Bailey Ling
e65aefac00
deprecate airline_detect_whitespace
2013-08-20 03:39:51 +00:00
Bailey Ling
f773325fa4
allow specific whitespace checks to be enabled/disabled.
2013-08-19 18:19:26 +00:00
Bailey Ling
2a02afb918
default whitespace symbol to non-unicode unless powerline fonts are enabled ( #155 ).
2013-08-19 13:33:13 +00:00
Bailey Ling
2413babe8b
remove checks for airline_active, it is always true
2013-08-11 15:24:08 +00:00
Bailey Ling
2ca403053c
fix whitespace indent setting changed incorrectly when toggling
2013-08-10 13:09:52 +00:00
Bailey Ling
320f50c6f9
extract a line number for mixed indents
2013-08-09 20:23:03 -04:00