Commit Graph

2660 Commits

Author SHA1 Message Date
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
Jonathan Müller
927e142e94 Don't use flags in spell when spelllang disabled
In vimscript, `0 ==? 'foo'` is true, as it converts the string to a
number which results in 0 for non-numeric strings.
2022-03-29 22:50:13 +02:00
Christian Brabandt
a306a7abfd
Merge pull request #2514 from patricknraanes/main
Enable display country flag instead of spelllang
2022-03-23 20:58:16 +01:00
Christian Brabandt
1b245800b5
Merge pull request #2516 from brandon-doornbos/master
Fix typo/wording in doc
2022-03-23 20:57:18 +01:00
Christian Brabandt
0f237d8b6b
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-03-23 20:44:44 +01:00
Christian Brabandt
1d486430cc
neovim: support global statusline and do not truncate too early
With Neovims recent merge of a global statusline (e.g. a statusline that
is the same across all windows), make sure that truncation only happens,
by checking the complete terminal window width instead of using the Vim
window width (similar to when using g:airline_statusline_ontop).

related: #2517
2022-03-23 19:40:21 +01:00
Brandon Doornbos
e643f9fa7d Fix typo/wording in doc 2022-03-07 23:05:53 +01:00
patricknraanes
2706bdc949 Enable display country flag instead of spelllang 2022-02-28 17:29:47 +01:00
Christian Brabandt
e2498d72dc
taglist: avoid v:true/v:false 2022-02-28 15:47:24 +01:00
Christian Brabandt
24f2878080
mode: add several new modes
fixes #2499 #2498
2022-02-28 15:47:24 +01:00
James Rowe
031e6ee4b2
unicode: Trivial quote change for vint error 2022-02-28 15:47:24 +01:00
James Rowe
21cdbea7e6
unicode: Fix check for :UnicodeTable buffer 2022-02-28 15:47:24 +01:00
Adrian Trunzo
d1f6514cef
Test for the correct fern loaded variable. 2022-02-28 15:47:24 +01:00
Jeff Pitman
20d77c3220
builder: bugs in is_empty_section
The current way to parse the statusline content and decide whether a
section is empty, has some flaws:

That is for the following reasons:
- accents are considered to be empty (which they really shouldn't)
- manually parsing the expressions using a
  `:while ... matchlist() ... endwhile` loop is slow and fragile
- grouping items such as %( %) are not considered

So replace the logic by using `substitute('pat', '\=add()', '')` to
capture all single expression groups into a list and then looping over
those to decide whether the section is empty.

fixes #2411
2022-02-28 15:47:24 +01:00
kazukazuinaina
64908db62a
[fix] Fix meaningless tests. 2022-02-28 15:47:23 +01:00
Ilia Choly
9a3568b815 nvimlsp: use vim.diagnostic.get() if available 2021-12-10 14:51:19 -05:00
Christian Brabandt
bf5d785932
virtualenv: Enable for additional filetypes beside python
So with https://github.com/jmcantrell/vim-virtualenv you can display the
virtualenv in your statusline section (if you have enabled it). However
it would only become active for python buffers.

Now perhaps you want to show the virtualenv also in other filetypes like
markdown or CI scripts, so allow this by adding a variable
`airline#extensions#virtualenv#ft'` to the list of filetypes you want to
have enabled. So set:

    let g:airline#extensions#virtualenv#enabled = 1
    let g:airline#extensions#virtualenv#ft = ['python', 'markdown']

To allow displaying the virtual environment for python and markdown
buffers (but remember you need to have the plugin
https://github.com/jmcantrell/vim-virtualenv installed as well!)

fixes #2483
2021-12-08 11:23:42 +01:00