Commit Graph

1692 Commits

Author SHA1 Message Date
Christian
7310ca6cbf highlighter: run ex command with leading colon in vim9 function #exec 2020-11-27 10:40:36 +01:00
Christian
9ae38b43e4 highlighter: vim9 script implementation of s:GetHiCmd 2020-11-27 10:40:36 +01:00
Christian
2441084898 highlighter: vim9 script implementation of s:CheckDefined 2020-11-27 10:40:36 +01:00
Christian
d9947beb0f highlighter: vim9 script implementation of #exec 2020-11-27 10:40:36 +01:00
Christian
a6b7267979 highlighter: vim9 script implementation of s:hl_group_exists 2020-11-27 10:40:35 +01:00
Christian
90de76359f highlighter: use synIDtrans() in s:hl_group_exists (legacy vimscript)
When checking the defined foreground color in the function that checks
whether a highlighting group exists, it should follow the syntax group
links and check the final color.
2020-11-27 10:40:35 +01:00
Christian
0238d386bb highlighter: vim9 script implementation of get_highlight2 2020-11-27 10:40:35 +01:00
Christian
19861861fd highlighter: vim9 script implementation of get_highlight 2020-11-27 10:40:35 +01:00
Christian
687fb52d9f fix indentation of legacy vimscript (remove tabs) 2020-11-27 10:40:35 +01:00
Christian
aa8bd171f3 highlighter: vim9 script implementation of reset_hlcache 2020-11-27 10:40:35 +01:00
Christian
b152059a98 highlighter: vim9 script implementation of s:get_array 2020-11-27 10:40:34 +01:00
Christian
4d75c9940c highlighter: vim9 script implementation of s:get_syn 2020-11-27 10:40:34 +01:00
Christian
ae3af85ca2 highlighter: remove a couple of empty lines in legacy vimscript implementation 2020-11-27 10:40:34 +01:00
Christian
a9f525f8da highlighter: vim9 script implementation of s:group_not_done 2020-11-27 10:40:34 +01:00
Christian
3e93c212cc highlighter: vim9 script implementation of s:gui2cui 2020-11-27 10:40:34 +01:00
Christian
a8afa434e3 highlighter: Add condition for new vim9 script implementation
Add a new condition that will contain the new vim9script implementation
of the highlighter logic. Not done yet.

To test it out, you need a recent Vim 8.2 and in addition set the
configuration variable

    :let g:airline_experimental=1

Implementation for all the functions will follow.
2020-11-27 10:40:34 +01:00
Christian
b0d4a44f0c add foldmarker to highlighter.vim 2020-11-27 10:40:33 +01:00
Christian
0abcdbeba5 convert msdos.vim 2020-11-27 10:40:33 +01:00
Christian
609205f1e8 remove trailing whitespace 2020-11-27 10:40:33 +01:00
Christian
06117a61e1 highlighter: windows terminal is not old win_term 2020-11-27 09:49:17 +01:00
Christian Brabandt
157af8ad8b tabline: use airline#util#strcharpart instead on relying on stpart() with char index 2020-11-26 14:00:29 +01:00
Christian Brabandt
cbf0a8e69a tabline: use strpart() with chars if possible (fixes #2297) 2020-11-26 10:04:43 +01:00
Christian Brabandt
a168ca7a28 tabline: get rid of s:vars in default formatter 2020-11-26 10:04:43 +01:00
nbCloud91
332fff9206 coc_status should show with autochdir
coc_status should be visible even with autochdir setting on.
2020-11-21 20:47:17 +05:30
timfeirg
5eae08609e fix deprecation warning
code is copied from https://github.com/vim-airline/vim-airline/issues/2289
originally contributed by @cmccannbrite
2020-11-14 17:01:19 +08:00
Christian Brabandt
9267cef0f8 Merge pull request #2282 from martskins/handle-lcn-not-running
Check LanguageClient-neovim's status before getting diagnostics
2020-11-09 18:35:51 +01:00
Kamil Cukrowski
f6f8666533 Fix bug in checking if gen_tags plugin is loaded 2020-11-08 11:01:26 +01:00
Martin Asquino
bd5ae9c584 Check LanguageClient-neovim's status before getting diagnostics 2020-11-07 12:59:13 +00:00
Christian Brabandt
5f2421fa39 Merge pull request #2276 from kazukazuinaina/fix_indent_bookmark_extension
[fix] bookmark extension's indentation and add abort
2020-11-06 09:11:35 +01:00
kazukazuinaina
1ed922265a [fix] short path formatter's space 2020-11-05 23:44:29 +09:00
kazukazuinaina
83804f3c6d [fix] bookmark extension's indentation and add abort 2020-11-05 23:14:13 +09:00
Christian Brabandt
d64e5f8dd7 extensions: fix E715
Make sure, that the get() function returns the correct variable type
2020-11-05 10:36:03 +01:00
Nick Friday
193460137a [add#keymap] more customization
Added more customization for keymap extension
2020-11-04 20:46:00 +03:00
Christian Brabandt
c8c0e7d9ff Get rid of g:airline_gui_mode
This is needed for Neovim, because an external UI could be attached to
the same neovim server, so it does not make sense to define highlighting
groups with either only the cterm or the guifg attribute set.

So refactor the code slightly got get rid of this variable (and since
this variable is not needed anymore, we can also get rid of the guienter
and OptionSet autocommand).

fixes: #2261
2020-10-30 08:32:35 +01:00
Christian Brabandt
38c9f9ca3d Merge pull request #2256 from Kamilcuk/master
Add gen_tags.vim plugin support
2020-10-29 13:41:35 +01:00
Kamil Cukrowski
42b31b966b Add gen_tags.vim plugin support
Display a "Gen. gen_tags" text in section x when gen_tags
is generating tags, similar to gutentags support.
2020-10-22 00:16:05 +02:00
Wang Ruochen
19ab70ee87 Add nroff to wordcount 2020-10-17 16:54:46 +08:00
Christian Brabandt
83bd08a97a Merge pull request #2243 from whisperity/battery-plugin-no-overwrite
[battery.vim] Change indicator to not overwrite position section
2020-10-14 09:04:46 +02:00
kazukazuinaina
659693c250 [fix] localsearch's url and add abort in autoload function 2020-10-14 01:17:00 +09:00
Whisperity
2762f7e6e5 [battery.vim] Move indicator to non-overwriting position if window big enough 2020-10-12 17:58:47 +02:00
kazukazuinaina
0a5753813c [fix] Variable Scope in ctrlspace's extension 2020-10-10 02:08:23 +09:00
MuhammadMouradG
f117de553b Fix buffer order in tabline with CtrlSpace plugin 2020-10-06 12:36:28 +00:00
Subhaditya Nath
3fc5ad231c Add more customization for 'localsearch' extension
Now it can be configured to show only when localsearch is disabled. It
is useful if you mostly keep localsearch enabled and don't want to keep
seeing the extra 'LS' section, but still want to have some kind of a
visual indication about when localsearch is disabled.
2020-09-26 01:16:48 +05:30
Moschcau, Kai
d40e5f9a1d Improve the term extension and make it consistent
This improves the term extension in a few ways.

First it fixes some vint warnings about case sensitive comparisons.

Next it makes the active and inactive variants consistent, as well as
making the line number display consistent to other buffer types. This
was one of the main reasons to do this, because the inclusion of the
Neoterm ID in a previous pull request made inactive terminal status
lines look really inconsistent compared to the active ones.

Further this now shows the Neoterm ID in both active and inactive
buffers in Airline section B. It also removes the now redundant
Neoterm IDs from the buffer name in both Neovim and Vim.

Finally the cosmetic buffer name is now used for both active and
inactive variants.
2020-09-16 09:41:18 +02:00
Andy
98683125f6 Support coc-explorer (file explorer extension) 2020-09-15 13:44:05 +02:00
Nathan Lanza
27b52acee7 Only attempt to use dirvish if b:dirvish exists
This was causing persistent errors when you run, for example,

```
ls | nvim -c 'setf dirvish'
```

as dirvish will not yet have set that local variable yet airline will
attempt to use it.
2020-09-15 12:30:27 +02:00
kazukazuinaina
2a69254d21 [add] support battery.vim 2020-09-08 01:26:24 +09:00
Paul Walker
dd5a3c91a1 vim-magit: Can't use an empty dictionary key 2020-09-03 10:51:23 +01:00
Christian Brabandt
0f5eedff74 mode: keep hi setting when switching from 'n' to 'ni'
when using `Ctrl-O` from insert mode, the highlighting currently updates
from insert mode highlighting to normal mode highlighting.
Unfortunately, changing the highlighting can be a bit expansive, so
redefining the highlighting just for one simple command does not make
too much sense.

Instead, keep the insert mode highlighting, because that's kind of like
the major mode Vim is in currently. The mode message uses '(INSERT)' to
distinguish between a "normal" INSERT mode and this temporary INSERT
mode, so it should still be visually be distinguishable.

closes #2217
2020-08-26 22:46:05 +02:00
huanhuan_zhuang
5d3cfa4045 add 'g:airline#extensions#tabline#tabtitle_formatter' option
The option can be used to specify a customized format() function to display tab title in tab mode
2020-08-25 13:42:18 +02:00