Commit Graph

2676 Commits

Author SHA1 Message Date
Shad
dba64a910d
Update util.vim
using getwinvar directly with 7.3 version of vim display the following error
E118: Too many arguments for function: getwinvar
E15: Invalid expression: getwinvar(a:winnr, '&buftype', '') ==# 'popup'
2022-09-26 15:01:40 +02:00
Christian Brabandt
a71f9a6417
Merge pull request #2575 from sartak/section-y-width
Reduce truncation for section y to 80 chars
2022-09-21 09:09:10 +02:00
Shawn M Moore
e0056ae5b0 Reduce truncation for section y to 80 chars 2022-09-20 23:57:06 -04:00
Christian Brabandt
2cea8346cf
plugin: handle sandbox mode gracefully
When the sandbox is active (e.g. while debugging something), certains
commands and expressions are not allowed (see :h sandbox) and may cause
nasty exceptions to be thrown.

So try to catch E48 and handle it gracefully
2022-09-07 09:44:51 +02:00
Christian Brabandt
90c6746311
builder: correctly remember the previous group when switching alignment
When `g:airline_skip_empty_sections' is set, and a section is considered
and after that section comes the alignment separator '%=' than airline
would not correctly render the airline_prevgroup_to_airline_curgroup
simply because the '%=' marker confuses it about which is actually the
previous group.

So consider the '%=' marker to be empty as well.

The case can be observed, when having set
`g:airline_skip_empty_sections' to true and opening a help buffer.
Because in that case, airline_section_c will be considered empty, then
the alignment separator comes and after that airline will (wrongly)
generate a highlighting group `airline_c_to_airline_z`, while it should
actually generate `airline_b_to_airline_z`
2022-09-02 12:44:44 +02:00
Christian Brabandt
f5a6597496
Merge pull request #2569 from BonaBeavis/patch-1
Fix nvimlsp not picking up show_line_number
2022-08-25 16:45:17 +02:00
BonaBeavis
d1f2c13e4f
Fix nvimlsp not picking up show_line_number 2022-08-23 16:38:15 +02:00
Christian Brabandt
9d20473e91
fugitiveline: remove outdated calls to fugitive
as per https://github.com/tpope/vim-fugitive/issues/2034

This also fixes an issue that is shown in older Vims (pre 7.4.1711)
since those versions did not correctly catch exceptions while evaluating
the statusline.

closes #2566
2022-08-15 17:30:53 +02:00
Christian Brabandt
61042e3502
fern: enable fern again
fern.vim decided to remove the global variable `g:fern_loaded` in
f9404e8a59b6a74b15a5

So adjust to use the correct variable name `g:loaded_fern`.

fixes #2346
2022-08-09 11:59:19 +02:00
Christian Brabandt
66a6e03a34
doc: adjust documentation for colnr symbol
after aee282c964 we also need to adjust
the documentation properly.
2022-08-08 10:12:57 +02:00
Christian Brabandt
aee282c964
symbols: use proper Column number codepoint
Back when the colnr symbol was first introduced in
8929bc72a1 it included symbol `\ue0a3`
when powerline fonts where supposed to be used by setting
`:let g:airline_powerline_fonts=1`

However, it turns out, that those symbol, may actually not be defined in
the powerline fonts at all, only in the
[powerline-extra-symbols](https://github.com/ryanoasis/powerline-extra-symbols)
and this has caused various issues, because it either did not display at
all, or the symbol caused strange overflowing issues which made the
overall look of the status line not very appealing and already caused
various issues here in the vim-airline repository.

Therefore, fall back to the symbol `\u2105` (℅) which at least is
already defined in the Unicode specification and has therefore a higher
chance of being defined inside a powerline font at all (but it may still
be missing after all).

Also, it is more consistent, because it will now use the same symbol as
when `g:airline_powerline_fonts` is not defined and the default Unicode
symbols are selected.

So if you want to keep on using the old symbol, you need to use:
```
let g:airline_symbols.colnr="\ue0a3:"
```

fixes: #2563
related: #2381
2022-08-08 10:11:44 +02:00
Christian Brabandt
9c7790b030
Merge pull request #2556 from watagashi/follow-interface-change-in-taglist
Follow interface change of Tlist_Get_Filenames() in taglist
2022-08-08 08:55:49 +02:00
Christian Brabandt
b9318d7ac0
Merge pull request #2557 from guydunigo/nvimlsp-linenumber
line numbers for nvimlsp like ale
2022-08-08 08:55:31 +02:00
Christian Brabandt
8e477c192b
Merge pull request #2561 from kemonprogrammer/patch-1
Update old link
2022-08-03 17:45:07 +02:00
Michael
e581972997
Update old link
Because the repository owner changed
2022-08-03 17:23:43 +02:00
GONI Guillaume
4933ee0977
add support for line numbers for nvimlsp like ale 2022-07-29 10:37:08 +02:00
WADA Takashi
61dc750149
Follow interface change of Tlist_Get_Filenames() in taglist
fac4055600 (diff-f6bf21c80d33916483d5e6c73613457b588f0c86886ebf84f6a50f242e36d72bL3687)
2022-07-27 11:57:42 +09:00
Christian Brabandt
ebb89a0846
plugin: mention how to disable certain events
E.g. how to disable the FocusGained event by setting the 'eventignore'
option.

Add some boilerplate to skip the focusgained function handler function, if it should be
ignored. (this should in theory stop setting up the autocommands at all
so might be tiny performance optimization).

closes #2421
2022-07-13 20:41:15 +02:00
IK
4a290d16fd
Merge pull request #2549 from vim-airline/add-vim9-ci
[add] Vim9's test in CI
2022-07-14 00:02:59 +09:00
kazukazuinaina
39e49cbbe8 [add] Vim9's test in CI 2022-07-14 00:00:28 +09:00
Christian Brabandt
83d853adc7
Merge pull request #2490 from vim-airline/replace-testing-framework
replace testing flamework, Using vim-themis
2022-07-12 22:40:13 +02:00
Christian Brabandt
fd56e87d00
highlighter: always consider terminal to be non-modified
references #2506
2022-07-12 22:38:56 +02:00
Christian Brabandt
b5f2eb418a
tabline: properly refresh with ModeChanged autocommand
closes #2539
2022-07-12 21:48:06 +02:00
Tim Pope
e4f586b76b
branch: simplify git branch logic slightly 2022-07-12 21:45:52 +02:00
kazukazuinaina
6105d0d74e [update] CONTRIBUTING.md 2022-07-03 17:03:33 +09:00
Christian Brabandt
91b67e3ca2
Merge pull request #2545 from rcasta74/vim9script
vim9: Fix boolean check in tabline#formatters#default
2022-06-28 09:13:48 +02:00
Roberto Castagnola
9bc66119a4 vim9: Fix boolean check in tabline#formatters#default
fixes #2544
2022-06-27 22:34:02 +02:00
kazukazuinaina
219c47ab9f [add] Test section in README 2022-06-12 03:28:51 +09:00
kazukazuinaina
1080056bca [delete] single quote 2022-06-11 02:43:24 +09:00
IK
ee80fd85cd
Update .github/workflows/ci.yml
Co-authored-by: uhooi <the_uhooi@yahoo.co.jp>
2022-06-11 02:37:12 +09:00
IK
5b5d940f87
Update .github/workflows/ci.yml
Co-authored-by: uhooi <the_uhooi@yahoo.co.jp>
2022-06-11 02:37:04 +09:00
kazukazuinaina
8cd5dd1f34 [update] CONTRIBUTING.md 2022-06-10 02:26:53 +09:00
Christian Brabandt
1a7d546448 fugitive: remove old fugitive test
As mentioned by @tpope, remove the old test for the autoloaded function
fugitivie#head() and instead use consistently FugitiveHead() everywhere

[delete] %bd command

[add] init.vimspec

[update] init.vimspec

[add] parts.vim

[add] section.vimspec

[add] themes.vimspec

[add] util.vimspec

[delete] vim-vspec
2022-06-10 02:00:00 +09:00
kazukazuinaina
9fad2c3fc4 ci: correctly checkout vim-flavor using https://
Currently, the CI throws:

The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

So update vim-flavor to 4.0.1 which uses https:// links instead of
un-authenticated git protocol. Unfortunately, we have to update ruby to
version 3.0 with that.

Let's see if this works.
2022-06-10 02:00:00 +09:00
kazukazuinaina
8681d4d49e [adopt] vim-themis 2022-06-10 01:59:40 +09:00
Christian Brabandt
97a9aa4bdb
Merge pull request #2540 from rionda/master
Show flag when `detect_spelllang` is `'flag'`, do not when it is 0.
2022-06-08 15:02:47 +02:00
Matteo Riondato
ba50f598ee
Show flag when detect_spelllang is 'flag', do not when it is 0.
927e142e94 broke the "show the lang flag"
functionality, as the check `if g:airline_detect_spelllang` is always
false when this variable is `'flag'`. Explicitly check whether this
variable is the string `'0'` to detect whether the feature should be
disabled.
2022-06-08 08:54:44 -04:00
Christian Brabandt
5d7e656081
fugitive: remove old fugitive test
As mentioned by @tpope, remove the old test for the autoloaded function
fugitivie#head() and instead use consistently FugitiveHead() everywhere
2022-05-21 21:58:11 +02:00
Christian Brabandt
c465570143
Merge pull request #2534 from svenberkvens/fix-close-button-in-tabline
Mark the end of the close button
2022-05-06 10:57:56 +02:00
Sven Berkvens-Matthijsse
396116b059
Mark the end of the close button
Not marking the end makes the rest of line (after the close button) also clickable and react as if the close button was clicked. That is very confusing and incorrect behavior.
2022-05-06 08:51:14 +02:00
Christian Brabandt
13628d698d
scrollbar: allow to customize minimum window width
closes #2531
2022-05-05 23:09:33 +02:00
Christian Brabandt
d421c35f94
Merge pull request #2529 from zoumi/master
make exclude pattern works when there are more than one tabpages
2022-05-05 23:05:30 +02:00
Christian Brabandt
0241bdb804
fugitiveline: leading zeros dropped in buffername
fixes #2533
2022-05-05 20:17:45 +02:00
zoumi
ce0e8d7e82 make exclude pattern works when there are more than one tabpages 2022-04-30 10:44:58 +08:00
Christian Brabandt
be5bda1f1d Merge pull request #2526 from pfernandez/patch-1
Changed bufloaded back to buflisted
2022-04-12 18:02:51 +02:00
Paul Fernandez
04bf4eabca
Changed bufloaded back to buflisted
The last PR (#2522) caused some issues for me, and the author @KSR-Yasuda suggested that this change could be the culprit. `__CtrlSF__` and `[No Name]` tabs appearing, and adding them to `airline#extensions#tabline#ignore_bufadd_pat` just made the whole tabline disappear.

I also use the Startify plugin with session saving, and found that when restoring a session, the tabs would no longer appear until I had visited a buffer again, whereas beforehand they would load up a soon as I opened Vim. So I commented out my entire vimrc, and could reproduce this issue by opening an existing session with `vim -S mysession`. Without this fix, only a single buffer from the session is shown in the tabline.

I'm using regular Vim, version 8.2 on MacOS 12.3.1.
2022-04-11 10:54:01 -07:00
Christian Brabandt
904979339c
fix ci test for tabline 2022-04-08 14:20:02 +02:00
Christian Brabandt
98027a4680
Merge pull request #2522 from KSR-Yasuda/bugfix/TabLine/WrongTabLabel
tabline: Fix tab label being named wrongly
2022-04-07 18:55:00 +02:00
yasuda
35af3bf37f tabline: Fix tab label being named wrongly
- Manage `nobuflisted` windows together
    - If a tab has no `buflisted` window,
      the tab label is named from default buffer name.
- Fix default buffer name selection from wrong tab
    - It has picked up default buffer name from active tab,
      not from the target tab.
2022-04-07 09:09:45 +09:00
Christian Brabandt
dc65eea5d9
Merge pull request #2521 from foonathan/master
Don't use flags in spell when spelllang disabled
2022-03-30 10:21:59 +02:00