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
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
Christian Brabandt
de73a21903
tabline: Give error message, if switching buffers is not possible
...
When using Neovim and switching to another buffer with the mouse and the
current buffer is modified, Vim refuses to switch buffers rightfully,
if the user has not set 'hidden' or 'autowrite' (because it is going to
unload the buffer from memory).
So catch this case and let the user know.
Note: :b! would be another possibility, but I do not prefer using this
attribute, because it is not clear what happens to the current buffer. I
think it is made hidden, but I prefer to be explicit here
closes #2478
2021-12-05 18:52:27 +01:00
Christian Brabandt
841a355196
Merge pull request #2472 from indelog/indelog_vim9lsp
...
Add extension for yegappan/lsp
2021-11-26 10:31:26 +01:00
Christian Brabandt
65a4d4dd43
Merge pull request #2464 from TamaMcGlinn/master
...
Add support for flog with git status summary
2021-11-26 10:27:33 +01:00
Christian Brabandt
f678b4c53d
Merge pull request #2471 from capt8bit/taglist_earlier_check
...
taglist: load taglist variants only once
2021-11-25 17:30:02 +01:00
Christian Brabandt
4b96f58902
Merge pull request #2462 from KSR-Yasuda/feature/CustomSpellCheckCommand
...
Custom Spell Check Command Support
2021-11-12 13:06:26 +01:00
Christian Brabandt
5841039679
taglist: check that correct function exists
...
So 47bf6b1716 added support for
yegappan/taglist plugin, but unfortunately the old (deprecated)
vim-scripts/taglist.vim repo still exists and this one throws an error
when trying to access taglist#Tlist_Get_Tagname_By_Line
So check, that this function is defined before trying to load the
extension
2021-11-12 09:32:50 +01:00
Christian Brabandt
6e5439126f
wordcount: allow to disable vimtex wordcount()
...
While Commit e542f5e introduced a nice little feature for TeX files to
accurately count words, this unfortunately has the drawback of being
possibly slow, especially since the statusline is often re-evaluated.
Therefore disable this feature by default. You can enable it using:
:let g:airline#extensions#vimtex#wordcount = 1
fixes #2461
2021-11-11 22:51:02 +01:00
Christian Brabandt
47bf6b1716
Merge pull request #2460 from indelog/indelog_taglist
...
Add extention to support yegappan/taglist
2021-11-11 15:06:32 +01:00
Christian Brabandt
70904d7070
Merge pull request #2458 from fritzlolpro/patch-1
...
Allow user to hide CoC status in the section C
2021-11-10 11:24:50 +01:00
Christian Brabandt
17f7dff748
Merge pull request #2457 from ytian81/remove_hunks_dependency_on_branch
...
Remove gitgutter hunks summary dependency on branch
2021-11-03 20:50:19 +01:00
Christian Brabandt
86a8ac0f96
Merge pull request #2451 from barn/master
...
Add vim-rufo extension support to section z.
2021-11-02 21:54:24 +01:00
Christian Brabandt
26f922753a
coc-extension: remove dead code
...
vim-airline does not use actually use the `g:coc_stl_format` variable
and it also doesn't seem to be used by coc itself. So let's just remove
this code.
closes #2437
2021-09-21 08:43:30 +02:00
Christian Brabandt
0a7e1bc475
style: Remove colon
2021-09-21 08:43:30 +02:00
Christian Brabandt
2e29ab9656
Merge pull request #2424 from Freed-Wu/Freed-Wu-patch-1
...
Fix bug of g:airline_symbols.spell == ''
2021-09-10 10:03:58 +02:00
Christian Brabandt
0de4c9df21
Merge pull request #2419 from Freed-Wu/fix-typo
...
Fix #2418
2021-08-11 19:15:58 +02:00
Christian Brabandt
2259e5c93e
Merge pull request #2416 from zeertzjq/gina-initialized
...
Don't show "gina" in diff buffers if `b:gina_initialized` is not set
2021-08-09 20:59:40 +02:00
Christian Brabandt
e519b53cab
Merge pull request #2417 from LOTehan/master
...
Fix "Cannot allocate color none"
2021-08-09 20:59:12 +02:00
Christian Brabandt
0cfd829c92
Merge pull request #2414 from vEnhance/master
...
Allow overriding trailing ws regexp per buffer
2021-08-04 08:11:53 +02:00
Christian Brabandt
a94d8034c3
Merge pull request #2402 from vim-airline/add-patch-1
...
[refactor] use Ternary operator
2021-07-06 08:49:54 +02:00
Christian Brabandt
49cdcb7b3e
vim9: Needs at least version 8.2.22844
2021-06-07 13:44:53 +02:00
Christian Brabandt
82b1b2e876
Merge pull request #2394 from adriantrunzo/master
...
Correct line number for coc.nvim warnings.
2021-06-04 08:45:17 +02:00
Christian Brabandt
a8b3c254d0
Merge pull request #2391 from aostruszka/master
...
Change event for tabline autoshow
2021-05-27 18:53:33 +02:00
Christian Brabandt
b6f6cc9312
autoload: fix error with vim74
2021-05-26 13:26:47 +02:00
Christian Brabandt
05bd105cab
Merge pull request #2385 from ReubenM/master
...
Completely customizable linenr, maxlinenr, colnr symbols and strings
2021-05-26 08:02:03 +02:00
Christian Brabandt
73025ea504
Merge pull request #2390 from ls4154/master
...
scrollbar: fix first line overwrite
2021-05-26 08:01:43 +02:00
Christian Brabandt
4a64fbfc4b
scrollbar: disable by default
...
as per feedback from reddit
2021-05-21 16:10:51 +02:00
Christian Brabandt
03ec880101
Merge pull request #2386 from vim-airline/add_winwidth_test
...
[add] winwidth's test
2021-05-18 08:13:00 +02:00
Christian Brabandt
ab4962b838
tabline: remove commented out functions, that are not possible in Vim9
2021-05-09 09:20:06 +02:00
Christian Brabandt
4c0c60bbf2
scrollbar: user after variable instead of re-calculating it
2021-05-08 18:50:24 +02:00
Christian Brabandt
ecac148e19
scrollbar: add an ascii scrollbar extension
2021-05-08 18:06:25 +02:00
Christian Brabandt
e7eea7c6e8
vim9: Use correct vim9 lambda functions
2021-05-08 13:55:26 +02:00
Christian Brabandt
a2f298ba8f
vim9: Rewrite highlighter in Vim9 Script
...
This is the one script, that is usually causing the most slow down.
Converting it to Vim9 Script should keep vim responsive and the users
happy. Hopefully that works now.
2021-05-08 13:36:55 +02:00
Christian Brabandt
7e295c859f
vim9: finish early for legacy Vims
...
fixes #2382
2021-05-08 09:20:25 +02:00
Christian Brabandt
19360bac63
themes: remove tabs for indenting
2021-05-08 01:42:10 +02:00
Christian Brabandt
7181950501
vim9: rewrite themes.vim to Vim9 Script
2021-05-08 01:39:55 +02:00
Christian Brabandt
e608a0c016
vim9: Rewrite tabline#formatters#default to Vim9Script
2021-05-08 00:48:18 +02:00
Christian Brabandt
725e881ac9
vim9: Convert tabline.vim to vim9 script
2021-05-08 00:27:11 +02:00
Christian Brabandt
c0c6b0e216
tabline: only remove 'e' flag from guioptions, if it is present
2021-05-07 22:50:29 +02:00
Christian Brabandt
390b243cf3
doc: Allow for experimental features
2021-05-07 22:48:42 +02:00
Christian Brabandt
23e20bfada
autoload: handle bufnr as string explicitly
...
This is some preparational work for evetually merging the vim9 script
feature.
Also while at it, remove those nasty `l:` prefixes
2021-05-07 22:46:57 +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
Christian Brabandt
76c24d2126
Merge pull request #2374 from ReubenM/master
...
Section-Z symbols and layout
2021-05-03 08:09:38 +02:00
Christian Brabandt
2d650d2e83
Merge pull request #2378 from flwyd/autocmd-dont-skip-toggle-off
...
Fire AirlineToggledOff autocmd even if airline is disabled
2021-05-03 08:04:35 +02:00
Christian Brabandt
2e9df43962
autocommands: check for existence of airline highlight group
...
Several extensions trigger custom actions. Make sure, those actions are
only performed, if airline is actually active and not temporarily
disabled using e.g. :AirlineToggle
2021-04-30 13:26:33 +02:00
Christian Brabandt
06134df810
Merge pull request #2372 from vim-airline/add_parts_test
...
[add] parts's test
2021-04-29 19:49:20 +02:00
Christian Brabandt
30f8ada1d6
Merge pull request #2371 from vim-airline/add_commands_test_case
...
[add] AirlineExtensions's test case
2021-04-28 08:12:20 +02:00
Christian Brabandt
c9eaf4c5d2
Merge pull request #2366 from vim-airline/add_new_opthon_airline_sectionc_file
...
[add] airline_sectionc_filename_onlyfilename option
2021-04-27 17:46:00 +02:00
Christian Brabandt
2f6471a9e1
Merge pull request #2369 from vim-airline/add_init_test_autochdir
...
[add] test case for init.vim / When autochdir is enabled
2021-04-27 08:00:48 +02:00
Christian Brabandt
0a87d08dbd
whitespace: Skip '===' conflict marker for markdown
...
fixes : #2014
2021-04-23 08:48:44 +02:00
Christian Brabandt
07ab201a27
Merge pull request #2363 from KSR-Yasuda/feature/ScratchBufName
...
Set bufname for [Scratch] (buftype = nofile)
2021-04-15 10:06:29 +02:00
Christian Brabandt
70b06be4b0
highlighter: do not error out, if defined hi-color does not exist
...
if a color definition is being used, that Vim does not seem to
recognize, instead of erroring out fallback to a hard-coded value of
grey. Otherwise we do have potentially a bad user experience for
throwing too many error messages at the user in very short time, which
may prevent him from doing the actual work (as just happened to me)
Grey should always be defined and it should be rather easy to spot
(I hope). Also just mention for what group this happens.
This should give the user a clue, where and when this happens (so he may
be able to adjust the theme).
2021-04-14 12:36:00 +02:00
Christian Brabandt
ed60e1d369
Merge pull request #2355 from patrick96/coc_current_function
...
coc: Show the current function in section_x
2021-03-27 17:15:19 +01:00
Christian Brabandt
2e421d3cd6
Merge pull request #2356 from nomasprime/move-airlineaftertheme-autocmd-to-load-theme
...
Move AirlineAfterTheme to load_theme()
2021-03-27 17:14:20 +01:00
Christian Brabandt
cba392dd7a
Merge pull request #2357 from miuirussia/patch-1
...
Fix error: key not present in dictionary "percentage"
2021-03-27 17:12:04 +01:00
Christian Brabandt
09dbd09ed3
highlighter: handle color names when converting into msdos codes
...
the highlighter code tries to convert the RGB colors into appropriate
color codes for the MSDOS palette. Unfortunately, it does not consider
color names and tries to split those into a list of 3 RGB codes. This
failes for names shorter 6 characters, causing a list index out of
bounds error.
Fix this by making sure, that the color code should start with '#' and
in case it does not, assume it is a color name and simple return the
name in that case.
closes #2350
2021-03-09 13:53:38 +01:00
Christian Brabandt
a262ec6ce4
Merge pull request #2348 from craigemery/patch-1
...
Fix effecting for affecting.
2021-03-07 18:33:04 +01:00
Christian Brabandt
df956aa08b
Merge pull request #2347 from ls4154/master
...
tagbar: add missing default search method
2021-03-02 12:41:48 +01:00
Christian Brabandt
fc639c0cf8
Merge pull request #2345 from UtkarshVerma/master
...
coc: Show line number for warnings and errors.
2021-03-02 10:20:12 +01:00
Christian Brabandt
cb1bc19064
Merge pull request #2337 from vim-airline/Functionalization_of_branch_extension
...
[refactor] Functionalization of branch extension
2021-02-15 16:12:20 +01:00
Christian Brabandt
c01977d027
Merge pull request #2326 from kdwarn/tagbar-search-method
...
Add searchmethod setting for tagbar extension
2021-02-05 08:19:55 +01:00
Christian Brabandt
82000c7cfc
Merge pull request #2331 from idbrii/fix-nul
...
Fix NUL file created when opening a .po file
2021-02-05 08:19:25 +01:00
Christian Brabandt
6def2f0a82
Merge pull request #2325 from dutchgecko/fix_2324_neovim
...
Ensure correct checking of LSP support on neovim
2021-02-04 08:28:24 +01:00
Christian Brabandt
50dfca52ed
nvimlsp: correctly call the lua functions for nvimlsp
...
closes #2324
Note: seems like one needs to call v:lua.vim.lsp.buf_get_clients() and
even then some older neovims do not understand that. So wrap it around
an exists() call and hope this works for all neovims.
2021-02-02 12:25:16 +01:00
Christian Brabandt
bffa7a4d23
nvimlsp: do not check for :LspInstallInfo
...
nvimlsp removed the :LspInstallInfo command. So instead check explicitly
for neovim for enabling the nvimlsp extension.
In the extension itself check that at least one LSP is attached to the
buffer before returning warning and error messages.
closes #2323
2021-02-02 10:07:51 +01:00
Christian Brabandt
c7a633ce8f
Merge pull request #2319 from idbrii/lsp-hide-when-nothing
...
Return nothing when there is no lsp-progress
2021-01-14 10:17:20 +01:00
Christian Brabandt
0ca9576331
Merge pull request #2313 from DunZzzz/patch-1
...
Support Vue.js file extension in jsformatter
2021-01-10 19:36:20 +01:00
Christian Brabandt
fdfc11f53a
Merge pull request #2318 from jsutlovic/patch-1
...
Modified dark.vim commandline gui colors
2021-01-08 16:13:44 +01:00
Christian Brabandt
30bcbb07c3
Merge pull request #2317 from kidonng/patch-1
...
Update vim-lawrencium link
2021-01-05 10:35:02 +01:00
Christian Brabandt
0eb2ed4488
Merge pull request #2315 from micchy326/impl_vim_lsp_progress
...
impl vim-lsp progress
2021-01-04 08:38:43 +01:00
Christian Brabandt
da6b076ee4
doc: mention that searchcount is only enabled when 'hls' is on
2021-01-02 20:35:58 +01:00
Christian Brabandt
4d284a677c
searchcount: Add leading space
...
closes #2314 #2154
Add a leading space before the searchcount statistics. Note, that this
uses a non-breaking space, because it looks like Vim is stripping aways
leading space characters (see vim/vim#1431 )
2021-01-02 20:25:00 +01:00
Christian Brabandt
8a60582527
init: section_y includes missing endofline and BOM
2021-01-02 19:26:44 +01:00
Christian Brabandt
17bf22e6fb
Merge pull request #2310 from roachsinai/select_tenth_buffer
...
tabline: add command for skip to tenth buffer.
2020-12-30 11:13:51 +01:00
Christian Brabandt
59b4826806
plugin: remember 'scroll' option value and reset it after enabling the statusline
...
fixes #2307
2020-12-23 13:43:30 +01:00
Christian Brabandt
f39208f1a0
Merge pull request #2302 from kazukazuinaina/update_readme_changelog
...
[update] CI's badge and [update] CHANGELOG.md
2020-12-09 08:58:46 +01:00
Christian Brabandt
c074620bfd
Merge pull request #2300 from kazukazuinaina/delete_travis
...
delete travis.yml
2020-12-09 08:42:23 +01:00
Christian Brabandt
6d6afc527e
Merge pull request #2299 from kazukazuinaina/add_gha
...
[add] github-actions
2020-12-09 08:34:52 +01:00
Christian Brabandt
2cea83eb88
whitespace: skip trailing ws test for mail filetypes
2020-12-06 09:46:14 +01:00
Christian Brabandt
9ce6f96f60
highlighter: windows terminal uses $WT_SESSION
2020-12-04 09:43:01 +01:00
Christian
06117a61e1
highlighter: windows terminal is not old win_term
2020-11-27 09:49:17 +01:00
Christian Brabandt
79eac1558a
Merge pull request #2293 from srinivas32/master
...
added power support arch ppc64le on yml file.
2020-11-27 08:32:38 +01:00
Christian Brabandt
157af8ad8b
tabline: use airline#util#strcharpart instead on relying on stpart() with char index
2020-11-26 14:00:29 +01:00
Christian Brabandt
cbf0a8e69a
tabline: use strpart() with chars if possible ( fixes #2297 )
2020-11-26 10:04:43 +01:00
Christian Brabandt
a168ca7a28
tabline: get rid of s:vars in default formatter
2020-11-26 10:04:43 +01:00
Christian Brabandt
a48f67657f
Merge pull request #2295 from nbCloud91/patch-1
...
coc_status should show with autochdir
2020-11-21 20:03:04 +01:00
Christian
91a8ada0f9
doc: document tabline highlighting groups ( closes #2285 )
2020-11-19 14:17:22 +01:00
Christian
beb20cb49f
doc: mention that the tabline mappings are not automatically created
...
related: #2290
2020-11-19 13:52:08 +01:00
Christian Brabandt
536667191d
Merge pull request #2287 from timfeirg/master
...
buf_diagnostics_count is deprecated. Use 'vim.lsp.diagnostic.get_count'
2020-11-14 12:11:18 +01:00
Christian Brabandt
731bdb11d2
Merge pull request #2286 from jan-xyz/patch-1
...
remove work-around for vista.vim
2020-11-10 08:47:56 +01:00
Christian Brabandt
9267cef0f8
Merge pull request #2282 from martskins/handle-lcn-not-running
...
Check LanguageClient-neovim's status before getting diagnostics
2020-11-09 18:35:51 +01:00
Christian Brabandt
bb760710cc
Merge pull request #2283 from Kamilcuk/master
...
Fix typo in checking if gen_tags plugin is loaded
2020-11-09 18:26:12 +01:00
Christian Brabandt
5f2421fa39
Merge pull request #2276 from kazukazuinaina/fix_indent_bookmark_extension
...
[fix] bookmark extension's indentation and add abort
2020-11-06 09:11:35 +01:00
Christian Brabandt
3f4b811510
Merge pull request #2278 from kazukazuinaina/fix_short_path_space
...
[fix] short path formatter's space
2020-11-06 09:10:34 +01:00
Christian Brabandt
d64e5f8dd7
extensions: fix E715
...
Make sure, that the get() function returns the correct variable type
2020-11-05 10:36:03 +01:00
Christian Brabandt
dcebc6d2aa
Merge pull request #2273 from NFrid/master
...
add more customization options for keymap extension
2020-11-05 09:23:58 +01:00
Christian Brabandt
44b7b72938
Merge pull request #2266 from vim-airline/refactor_airline_gui_mode
...
Get rid of g:airline_gui_mode
2020-10-30 09:18:29 +01:00
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