Commit Graph

2757 Commits

Author SHA1 Message Date
get-me-power
d7edaf8fd0 chore: update ci 2024-09-11 02:31:50 +09:00
wzy
d25c049e61
xkblayout: support ime.nvim (#2682)
Some checks failed
CI / Test (v7.4) (push) Has been cancelled
CI / Test (v8.0.0000) (push) Has been cancelled
CI / Test (v8.1.0000) (push) Has been cancelled
CI / Test (v8.2.0000) (push) Has been cancelled
CI / Test (v8.2.1000) (push) Has been cancelled
CI / Test (v9.0.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled
Improve document
2024-07-23 16:10:19 +02:00
wzy
02894b6ef4
xkblayout: support fcitx5-ui.nvim (#2680)
https://github.com/black-desk/fcitx5-ui.nvim
2024-06-16 16:57:43 +02:00
Dionisio E Alonso
16c1638f93
nvimlsp: Correct deprecation warning on nvimlsp plugin (#2678)
Also correct regression introduced in #2676 with #2677
2024-05-20 13:51:17 +02:00
Christian Brabandt
6cc2c5c9e9
nvimlsp: Use vim.lsp.buf_get_clients() for Neovim < 0.11
closes: #2676

Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-05-19 21:47:31 +02:00
Dionisio E Alonso
c3d1d13b72
lsp: Correct deprecation warning on nvimlsp plugin (#2675)
As of version 0.12 of Neovim, the replaced API call is being deprecated.  From 0.11.0 there is already a “deprecation warning” in place.

This patch corrects that by using the new API call.
2024-05-19 17:40:51 +02:00
wzy
ff0f9a45a5
xkblayout: use FcitxCurrentIMwithRime() when available (#2670)
latest version of fcitx.vim add FcitxCurrentIMwithRime()
to display input method information in detail
2024-04-24 23:11:48 +02:00
Christian Brabandt
d9f42cb467
parts: error when unsing non-utf8 encoding
use exprission string "\u2026" instead of literal …

fixes #2666
2024-02-17 15:29:08 +01:00
Lars Hansen
20a49bd494
doc: Make tabline#show_buffers more prominent in documentation (#2663) 2024-02-10 11:35:56 +01:00
Nobuhiro MIKI
ff7352e4bf
doc: Unify notation of variables (#2659)
There were roughly the following notational shakes:

- arline...
- let airline...
- let g:airline...

Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
2023-12-26 15:47:01 +01:00
Christian Brabandt
3b9e149e19
ci: run on ubuntu 20.04 instead of ubuntu 22.04
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-11 13:32:00 +02:00
Christian Brabandt
ec74913b94
ci: fix failing test
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-11 13:27:32 +02:00
Ingo Meyer
3854429d99
plugin: Add extension for codeium
closes #2653
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-11 13:21:00 +02:00
Christian Brabandt
0adefd0c42
vimodoro: fix style according to reviewdog
Mainly, add the `abort` attribute and make the == comparison case
sensitive

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-11 13:13:58 +02:00
Billy Chamberlain
4757756ae0
plugin: Add extension for vimodoro plugin (#2652)
* Adds integration with vimodoro information.

---------
Co-authored-by: Rowan <rowan.douglas@vimabc.xyz>
Co-authored-by: Eddy <eddy_c@novellpharm.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-10 10:12:40 +01:00
Christian Brabandt
f1ba5a03db
branch: --no-optional-locks arg needs to be given to git
The special argument --no-optional-lock applies to the main git command,
and not to the git subcommand `git status`. So move it there, to prevent
an error with git.

closes #2651

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-04 21:01:39 +02:00
Christian Brabandt
e6bb8427dc
Merge pull request #2648 from idbrii/git-nolock
Don't lock git repo when checking status
2023-07-19 20:33:02 +02:00
David Briscoe
65e77b970d Don't lock repo when checking status
Fix "fatal: Unable to create '.git/index.lock': File exists." when doing
fugitive commands.

Since upgrading fugitive from fugitive@7c1f2ed to 5f0d280, I
occasionally hit this lock error when using `ZZ` to save and close the
fugitive rebase window.

I have no other windows or tabs open (nothing that might be invoking
git). I get the error around 1 in 5 attempts on a larger git repo and
less often on small repos (like vim-fugitive's repo).

However, I have airline and have the git branch name and dirty status in
my **statusline**. A minimal repro of just sensible, fugitive, and
vim-airline with no custom airline configuration produces the issue. If
I use `:AirlineToggle` to turn off the statusline, it seems to go away.

Airline uses fugitive to get the branch name (with `FugitiveHead()`) and
strip the `fugitive://` name from buffers (with `FugitiveReal()`).

I tried removing ShellCmdPost fugitiveline.vim and that *seems* to fix
it, but I don't understand why.

What makes more sense is that the dirty check is asynchronous and is
trying to check status when fugitive is trying to rebase. Because the
repo is large, it takes longer to get status (true for just running `git
status` too).

I have async enabled:
    :echo g:airline#init#vim_async
    1

tpope suggests using --no-optional-locks to solve:
https://github.com/tpope/vim-fugitive/issues/1624

That also appears to fix the issue.

This flag was introduced to git in 2017 which would make airline fail on
older gits:
27344d6a6c
There's also GIT_OPTIONAL_LOCKS=0 environment variable, but that
requires more infra work.
2023-07-19 11:14:10 -07:00
Christian Brabandt
cead8efb48
term: allow to customize section_a and section_z
closes: #2647
2023-07-13 16:48:04 +02:00
Christian Brabandt
423fe9e2ac
Merge pull request #2643 from Omcsesz/patch-1
Update README.md
2023-05-25 11:14:50 +02:00
Sweidan Omár
3776947590 Update README.md
Added the option for installing via vim-plug
2023-05-24 18:49:23 +02:00
Christian Brabandt
5891a3f7be
Merge pull request #2635 from 3ximus/master
Fix the number of splits in a tab displayed in the tabline
2023-04-17 10:05:28 +02:00
Christian Brabandt
4eea2b7e3c
Fix check for vim9 script
closes #2636
2023-04-17 09:53:26 +02:00
eximus
515d4cbbec fix tabline tabnr formatter - nr of splits 2023-04-14 14:18:03 -04:00
Christian Brabandt
a532fed72a
fix saythank.io link 2023-03-16 08:08:20 +01:00
IK
038e3a6ca5
Merge pull request #2627 from vim-airline/update-ci-yml
chore: Pin actions's version main branch
2023-02-03 04:29:11 +09:00
get-me-power
1828172717 chore: Pin actions-checkout's version main branch 2023-02-03 04:26:34 +09:00
Christian Brabandt
18b85395d3
wordcount: skip updating wordcount for vimtex#misc#wordcount() in visual mode
closes #2624
2023-01-29 22:07:36 +01:00
Christian Brabandt
c7460aa883
Merge pull request #2621 from bobbleclank/hunk-gitgutter-selection
Prevent selecting GitGutter when its loaded but not enabled
2023-01-22 15:10:40 +01:00
Simon Truscott
8fd91eaca9 hunks: prevent selecting GitGutter when its loaded but not enabled 2023-01-22 09:03:56 +11:00
Christian Brabandt
31e01612f3
tagbar: do not load, if file size is too large
closes: #2578
2023-01-19 21:46:36 +01:00
Christian Brabandt
dc1b607f56
tagbar: break too long line 2023-01-19 21:45:37 +01:00
Christian Brabandt
08cfcf9408
tagbar: move s:flags to inside the function
This matters, if the users later changes the
'airline#extensions#tagbar#flags'  variable, so that it will be taken
into account by the tagbar extension
2023-01-19 21:44:21 +01:00
Christian Brabandt
50a936608c
tagbar: prevent error on initial load
Tagbar plugin expects a printf() formatting string, so use one
2023-01-19 21:25:23 +01:00
Christian Brabandt
9252c11d37
tabnr_formatter: get correct name for tabpage 2023-01-19 20:57:47 +01:00
Christian Brabandt
e4a57d0be4
Merge pull request #2618 from artemvmin/short-path-improved
Add improved short path tabline formatter
2023-01-19 20:19:13 +01:00
Christian Brabandt
1d9ae3f972
tabnr formmatter: return tabpagebuflist for tab_nr==0 2023-01-18 09:32:51 +01:00
Artem Minyaylov
9eb4aa47a3 Add improved short path tabline formatter 2023-01-17 09:44:33 -08:00
Christian Brabandt
f46792ebcb
Merge pull request #2619 from artemvmin/mode-truncation
Use mode minwidth to configure truncation
2023-01-17 08:10:46 +01:00
Artem Minyaylov
04f95183e2 Use mode minwidth to configure truncation 2023-01-16 17:01:00 -08:00
Christian Brabandt
82aeea1276
extensions: fix tabnr formatter
related #2616
2023-01-16 22:58:54 +01:00
Christian Brabandt
1ecbc76682
extensions: correctly check for external extensions
fixes #2594
2023-01-11 16:45:28 +01:00
Christian Brabandt
1028c6ea12
tabnr: replace by a new naive function
This function simply returns the current tabnumber followed by the
number of buffers in the current tabpage.

The previous one either was broken long ago or did not work as expected.

fixes #2616
2023-01-11 16:41:08 +01:00
Christian Brabandt
4f5b641710
formatter: tabnr expects a number bot got List
Make sure, that the second argument is actually a number and not a list.
Note: even when fixing this, the tabpage still shows some strange output
e.g. currently
 1   1.%{len(tabpagebuflist(1))} 

In a vim window. Not sure, why Vim does no longer evaluate those %{..}
sections. Perhaps some change in Vim?

closes #2616
2023-01-09 14:55:11 +01:00
Christian Brabandt
9007d19ab7
Merge pull request #2617 from bobbleclank/use-gitsigns-status-dict
Use gitsigns_status_dict instead of gitsigns_status
2023-01-09 14:39:11 +01:00
Simon Truscott
029797db1c hunks: use gitsigns_status_dict instead of gitsigns_status
- Gitsigns also provides status as a dictionary. Use that rather than
  parsing a decorated string

- Fix indentation
2023-01-08 15:37:43 +11:00
Christian Brabandt
0913c0a3b6
Merge pull request #2613 from bobbleclank/searchcount-config
Add search-count configuration
2023-01-02 17:39:49 +01:00
Simon Truscott
e9c09a2e66 searchcount: add configuration
- Allow disabling displaying the search term.
- Allow setting the length for truncating the search term.

- Fix inconsistent status format for timed out:
  No space between search term and counts.
2023-01-02 11:42:54 +11:00
Christian Brabandt
785dbbe504
Merge pull request #2614 from bobbleclank/hunks-gitsigns
Add support for gitsigns.nvim in hunks extension
2023-01-01 10:18:35 +01:00
Simon Truscott
46f0a12bae hunks: add support for gitsigns.nvim
Refactor s:get_hunks_coc() so that parsing the hunk status can be reused
by s:get_hunks_gitsigns().

Reorder s:get_hunks_coc() for consistent ordering with related code.

Give gitsigns.nvim priority over coc-git when selecting b:source_func in
hunks#get_raw_hunks().
2023-01-01 11:46:28 +11:00