Commit Graph

1849 Commits

Author SHA1 Message Date
Christian Brabandt 7a552f415c
highlighter: remove stale separator entries on buffer unload
fixes: 

Co-authored-by: Mina Nagy Zaki <mnzaki@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-05 06:49:09 +01:00
laburnumT 25635ab504
symbols: Update symbol used for maxlinenr ()
U+2630 is a full width character. Replace it with U+2261.

closes: 

Signed-off-by: laburnumT <laburnumtec@gmail.com>
2024-11-18 21:07:35 +01:00
Neil Lambert 6c704f4b78
fix vim-airline/fern does not update the branch name as you navigate through fern, and theme fern inactive windows too ()
Co-authored-by: Neil Lambert <nlambert@pm.me>
2024-10-30 18:21:02 +01:00
wzy d25c049e61
xkblayout: support ime.nvim ()
Improve document
2024-07-23 16:10:19 +02:00
wzy 02894b6ef4
xkblayout: support fcitx5-ui.nvim ()
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 ()
Also correct regression introduced in  with 
2024-05-20 13:51:17 +02:00
Christian Brabandt 6cc2c5c9e9
nvimlsp: Use vim.lsp.buf_get_clients() for Neovim < 0.11
closes: 

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 ()
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 ()
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 
2024-02-17 15:29:08 +01:00
Ingo Meyer 3854429d99
plugin: Add extension for codeium
closes 
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 ()
* 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 

Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-04 21:01:39 +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: 
2023-07-13 16:48:04 +02:00
Christian Brabandt 5891a3f7be
Merge pull request 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 
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 18b85395d3
wordcount: skip updating wordcount for vimtex#misc#wordcount() in visual mode
closes 
2023-01-29 22:07:36 +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: 
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 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
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 
2023-01-16 22:58:54 +01:00
Christian Brabandt 1ecbc76682
extensions: correctly check for external extensions
fixes 
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 
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 
2023-01-09 14:55: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 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
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
Radar 4e552414d4
Allow to define own path for short_path formatter
let g:airline#extensions#tabline#formatter = 'short_path'
let g:airline#extensions#tabline#fnamemod = ':h'

Update short_path documentation
2022-12-23 09:54:52 +01:00
Christian Brabandt 994cfd80eb
Powerline: Mention alternative to notexists symbol
I noticed, that in some environments the default
g:airline_symbols[notexists] just does not show up, even when the same
font in the gui works. So let's at least mention a possible alternative,
that you can easily use in your vimrc:

```vim
  if !exists("g:airline_symbols")
    let g:airline_symbols = {}
  endif
  let g:airline_symbols.notexists = "\u2204"
```
2022-12-15 17:15:15 +01:00
Igbanam Ogbuluijah 2ae1475d0d
add variardic arguments to generate_color_map 2022-12-07 02:28:40 +00:00
Igbanam Ogbuluijah 62847a8cc9
add variardic arguments to get_highlight functions 2022-12-07 02:28:19 +00:00
Zhizhen He 3c9c2ba5d4
fix typo 2022-11-24 11:47:41 +08:00
Christian Brabandt f65f27b9eb
Merge pull request from Freed-Wu/fcitx
Add support for fcitx.vim
2022-11-17 16:18:44 +01:00
Wu Zhenyu 1e491727b2
Add support for fcitx.vim
<https://github.com/lilydjwg/fcitx.vim/issues/32>
2022-11-15 17:29:36 +08:00
eximus b86e5e09b2 Improve coc error/warning status format to include count 2022-11-04 16:37:31 -04:00
Christian Brabandt 364ffba120
Merge pull request from 3ximus/master
Use the coc status variable to format error/warning text
2022-11-04 13:51:08 +01:00
DEMAREST Maxime 5c682e7bd3 Fix vim9lsp ErrorCount method name change 2022-10-31 19:10:37 +01:00
eximus d56f199405 Use the coc status variable to format error/warning line number 2022-10-28 14:34:11 -04:00
amarakon 84823e5e7d Treat R Markdown the same as Markdown 2022-10-13 16:53:42 +02:00