Commit Graph

142 Commits

Author SHA1 Message Date
Christian Brabandt
c7704c6bc7 init: use a minimum of 2 columns for the current line number
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
CI / Test (v9.1.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled
fixes: #2699

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-04-08 13:27:11 +02:00
Christian Brabandt
9884c07966 whitespace: U+2632 changed width to double-width
Whitespace Character U+2632 changed to double-width with Unicode release
16 (Vim patch v9.1.736). This causes issues with the statusline like
adding wrapping.
So let's mark that character back as single width, since that is what
most underlying libraries seem to expect.

closes: #2715
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-04-08 10:20:16 +02:00
laburnumT
25635ab504 symbols: Update symbol used for maxlinenr (#2690)
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
CI / Test (v9.1.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled
U+2630 is a full width character. Replace it with U+2261.

closes: #2691

Signed-off-by: laburnumT <laburnumtec@gmail.com>
2024-11-18 21:07:35 +01: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
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
amarakon
3fe71a6ce6 Remove trailing whitespace 2022-09-30 23:25:47 -04: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
24f2878080 mode: add several new modes
fixes #2499 #2498
2022-02-28 15:47:24 +01:00
Indelog
8df0f3db4b Add extention for yegappan/lsp
Show errors and warnigs with yegappans/lsp plugin.
2021-11-26 10:12:11 +01:00
Indelog
d134ae8c2f Add extention to support yegappan/taglist 2021-11-11 14:26:49 +01:00
ReubenM
ef232cfee1 Update docs 2021-05-19 15:43:23 -05:00
ReubenM
1f94ec1556 Make everything in linenr, maxlinenr, and colnr completely configureable, including spaces and colons. The only thing hard wired anymore is the actual numbers. 2021-05-09 22:12:37 -05:00
Christian Brabandt
ecac148e19 scrollbar: add an ascii scrollbar extension 2021-05-08 18:06:25 +02:00
Christian Brabandt
db78454a03 symbols: Use a different Column char in UTF-8
Personally I don't like the extra-wide ㏇ char, so let's make it ℅
2021-05-07 22:29:59 +02:00
ReubenM
9e62ad962a Remove un-needed spaces in section-z when using Ascii variant 2021-04-29 12:09:41 -05:00
ReubenM
8929bc72a1 Fix symbols and layout used in line and column display from section-z. Added column number symbol. 2021-04-29 11:55:25 -05:00
kazukazuinaina
9b2c1e9915 [add] g:airline_section_c_only_filename 2021-04-27 19:39:21 +09:00
patrick96
7d6adf9cc5 coc: Show the current function in section_x
coc.nvim exposes the name of the function the cursor is currently in
through b:coc_current_function.

For this to work, the key coc.preferences.currentFunctionSymbolAutoUpdate
must be set to 'true' in the coc config.

The value is only updated on CursorHold, so the value may not always be
accurate when moving around.
2021-03-20 00:42:46 +01:00
micchy326
0c8164b1b3 impl vim-lsp progress 2021-01-02 16:51:16 +09:00
Bailey Ling
5601c0928e Happy new year! 2021-01-01 12:57:00 +00: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
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
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
Whisperity
2762f7e6e5 [battery.vim] Move indicator to non-overwriting position if window big enough 2020-10-12 17:58:47 +02:00
Christian Brabandt
a294f0cb7e Merge pull request #2183 from tooSadman/nvim-lsp-support
Added support for built-in nvim-lsp
2020-08-12 15:41:47 +02:00
tooSadman
782774c0dc Added support for built-in nvim-lsp 2020-08-03 18:19:26 +03:00
kazukazuinaina
b322ee6728 [add] short_path formatter in section_c
[update] test
2020-07-23 15:58:21 +09:00
Rick Jones
ee4afdeedb Dynamically resize section Z
Resolves: #2168
2020-07-08 23:46:00 +01:00
nickspoons
fab4a02838 Add OmniSharp extension to display server status 2020-07-08 16:32:07 +12:00
Christian Brabandt
99c2dfd569 coc: use bold accent for g:coc_status
fixes #2101
2020-03-29 16:03:00 +02:00
ckipp01
fe94d52c4c coc: add in coc_status to coc.nvim integration
Allow to show additional messages from coc.nvim in section_c

For ease of use, shorten the message for windows smaller than 81
characters.

closes #2079
2020-03-02 13:16:37 +01:00
François-Xavier Carton
0860036454 Add support for vim-lsp 2020-03-01 00:41:33 +01:00
kazukazuinaina
cf6dcf5e19 update license's year in vim-airline 2020-01-06 11:22:49 +09:00
Christian Brabandt
ce932f3825 Revert "themes: drop simple colorscheme - theme mappings"
This reverts commit 47be64d7f2.

closes #2006
2019-11-29 08:27:13 +01:00
Christian Brabandt
47be64d7f2 themes: drop simple colorscheme - theme mappings
vim-airline by default already tries to load theme names, that have the
same name as the colorscheme. Therefore, it does not make sense, to add
mappings that result in the same theme name.

So drop the base16, wombat, zenburn and solarized keys
2019-11-27 13:52:21 +01:00
shmaryar
28dcb68bf3 Add vista.vim (https://github.com/liuchengxu/vista.vim) integration 2019-07-23 09:38:14 +02:00
Christian Brabandt
28453d7038 Support Multiple Cursor mode
Detect the use of plugin https://github.com/mg979/vim-visual-multi
and show mode "MULTI" when it is active.

closes #1933
2019-06-11 09:48:08 +02:00
Christian Brabandt
4a1ac56286 Define coc functions as empty by default
fixes #1926
2019-05-29 21:04:32 +02:00
Peng Guanwen
b3ecf49f86 Coc integration 2019-05-29 21:20:20 +08:00
Bjoern Petri
f1529ce051 vim-bookmark extension 2019-05-03 10:44:09 +02:00
Christian Brabandt
8169aa25af init: make sure the dirty symbol is defined
references #1907
2019-04-30 17:36:31 +02:00
Christian Brabandt
ffd8c406ab branch: Make the branch extension available with 80 char wide windows 2019-04-24 16:12:54 +02:00
Christian Brabandt
9112675ad8 branch: display dirty state
If the repository is considered dirty, do display the
g:airline_symbols.dirty symbol right after the branch name.
2019-04-24 15:16:57 +02:00
Christian Brabandt
c8a36e14e9 Updated Copyright Statements 2019-03-25 12:29:47 +01:00
Max Nordlund gmail
45ff435378 Honor minwidth for hunks and branch parts
This removes the hardcoded minwidth limits for both the `hunks` and
`branch` parts. It replaces these with safe accesses to the `minwidth`
setting as done by `airline#parts#define_minwidth`.
2019-02-20 12:36:40 +01:00
Christian Brabandt
fd5bde1a3a allow to show the statusline on top
This is an experimental feature that allows to display the statusline in
the tabline. It might still be a bit rough, but seems to work so far.

Remaining problem:
- Mode changes are not immediately detected, only after moving the
  cursor

fixes #1388
closes #1867
2019-02-03 17:30:55 +01:00
Christian Brabandt
3d9071e6b6 themes: Load dark theme, when default colorscheme is loaded 2018-12-03 18:29:26 +01:00
Christian Brabandt
68f5f1e50d mode: Update doc, sort dict 2018-10-15 14:17:49 +02:00
Christian Brabandt
fce8585239 main: detect some more modes 2018-09-20 10:13:59 +02:00
Christian Brabandt
bcd37fc115 mode: add support for virt replace mode
fixes #1792
2018-09-16 18:25:27 +02:00