Gregory Anders
6ffa434f0b
refactor(editorconfig)!: change editorconfig_enable to editorconfig
2023-01-07 08:19:37 -07:00
Gregory Anders
34d1eaa792
feat(editorconfig): allow editorconfig to be toggled dynamically
...
Rather than only check `editorconfig_enable` when the plugin is loaded,
check it each time the autocommand fires, so that users may enable or
disable it dynamically.
Also check for a buffer local version of the variable, so that
editorconfig can be enabled or disabled per-buffer.
2023-01-07 08:19:12 -07:00
Gregory Anders
ab9a2c4925
feat(editorconfig): add builtin EditorConfig support
2023-01-03 10:28:55 -07:00
Folke Lemaitre
ef91146efc
feat: vim.inspect_pos, vim.show_pos, :Inspect
2022-12-17 13:05:31 +01:00
Christian Clason and Bram Moolenaar
3576776903
vim-patch:86b4816766d9 ( #21314 )
...
Update runtime files
https://github.com/vim/vim/commit/86b4816766d976a7ecd4403eca1f8bf6b4105800
vim-patch:9.0.1029: autoload directory missing from distribution
Problem: Autoload directory missing from distribution.
Solution: Add the autoload/zig directory to the list of distributed files.
https://github.com/vim/vim/commit/84dbf855fb2d883481f74ad0ccf3df3f8837e6bf
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2022-12-08 16:33:38 +01:00
zeertzjq and Bram Moolenaar
65e8ed45de
vim-patch:9.0.0969: matchparen highlight is not updated when switching buffers ( #21227 )
...
Problem: Matchparen highlight is not updated when switching buffers.
Solution: Listen to the BufLeave and the BufWinEnter autocmd events.
(closes vim/vim#11626 )
https://github.com/vim/vim/commit/28a896f54d4b2f2b4bef8ef4144dde1673c9d6e7
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2022-11-29 10:17:57 +08:00
Lewis Russell and zeertzjq
2afcdbd63a
feat(Man): port to Lua ( #19912 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-02 15:20:29 +01:00
Christian Clason
d3cd79709b
vim-patch:fd999452adaf ( #19929 )
...
Update runtime files
https://github.com/vim/vim/commit/fd999452adaf529a30d78844b5fbee355943da29
2022-08-25 00:49:33 +02:00
bfredl
aad20de5ab
fix(startup): nvim with --clean should not load user rplugins
...
runtime rplugins such like legacy script providers are not affected
by this change.
2022-06-04 18:37:54 +02:00
Christian Clason
c0efe49e78
vim-patch:519cc559b08b ( #16340 )
...
Update runtime files
https://github.com/vim/vim/commit/519cc559b08b800edc429688aece7ad6a00d41eb
2021-11-17 10:02:59 +01:00
Gregory Anders
088026205f
refactor: define diagnostic highlights in syntax.c
2021-10-03 20:06:06 -06:00
Gregory Anders
c13242cf47
fix(diagnostic): remove useless highlight links ( #15683 )
...
These links were actually defined backwards: the highlight groups
actually being used for display are the new "Diagnostic*" groups, so
linking the old "LspDiagnostics*" groups to these does absolutely
nothing, since there is nothing actually being highlighted with the
LspDiagnostics* groups.
These links were made in an attempt to preserve backward compatibility
with existing colorschemes. We could reverse the links to maintain this
preservation, but then that disallows us from actually defining default
values for the new highlight groups.
Instead, just remove the links and be done with the old LspDiagnostics*
highlight groups.
This is not technically a breaking change: the breaking change already
happened in #15585 , but this PR just makes that explicit.
2021-09-17 08:17:54 +02:00
Gregory Anders
c2a65921d7
fix(diagnostic): don't override existing highlight groups #15682
...
Use the 'default' keyword to prevent overriding existing highlight groups.
ref #15585
2021-09-16 14:51:29 -07:00
Gregory Anders
a5bbb932f9
refactor: move vim.lsp.diagnostic to vim.diagnostic
...
This generalizes diagnostic handling outside of just the scope of LSP.
LSP clients are now a specific case of a diagnostic producer, but the
diagnostic subsystem is decoupled from the LSP subsystem (or will be,
eventually).
More discussion at [1].
[1]: https://github.com/neovim/neovim/pull/15585
2021-09-15 14:09:47 -06:00
Christian Clason
5fd21b8d3e
vim-patch:6c391a74fe90 ( #15654 )
...
Update runtime files
https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7
omit autoload/getscript.vim
skip doc/eval.txt (needs 8.2.2468)
skip doc/various.txt (needs 8.2.3400)
(typofixes courtesy of @dundargoc)
2021-09-13 16:33:41 +02:00
Christian Clason
1a9d2a4040
vim-patch:89a9c159f23f #15641
...
Update runtime files
https://github.com/vim/vim/commit/89a9c159f23fb7b3e24e6d09068adfc24a73afcb
Omit:
nsis/lang/turkish.nsi
pixmaps/gen-inline-pixbufs.sh
doc/popup.txt
doc/terminal.txt
tutor/tutor*
src/[g]vimtutor
CONTRIBUTING.md
Skip:
doc/eval.txt (needs 8.1.2342)
doc/testing.txt (needs 8.2.0299)
2021-09-13 06:05:27 -07:00
zeertzjq
6ff1e3fa1f
fix(man.vim): use -addr=other instead of -range=-1 #15172
...
-range=-1 requires the current file to have at least <count> lines, whereas -addr=other doesn't.
-addr=other also sets <count> to -1 by default when it is not specified, though this feature seems undocumented.
2021-08-26 04:36:31 -07:00
Justin M. Keyes
2548a9e180
fix(man.vim): filetype=man is too eager #15488
...
Problem:
"set filetype=man" assumes the user wants :Man features, this does extra
stuff like renaming the buffer as "man://".
Solution:
- old entrypoint was ":set filetype=man", but this is too presumptuous #15487
- make the entrypoints more explicit:
1. when the ":Man" command is run
2. when a "man://" buffer is opened
- remove the tricky b:man_sect checks in ftplugin/man.vim and syntax/man.vim
- MANPAGER is supported via ":Man!", as documented.
fixes #15487
2021-08-26 02:19:52 -07:00
Jan Edmund Lazo
7e36c9a2d3
vim-patch:56994d215815
...
Update runtime files.
https://github.com/vim/vim/commit/56994d215815139207f3c5ce02a1720e44e93c09
2021-05-02 12:44:04 -04:00
Jan Edmund Lazo
abb13dde98
vim-patch:130cbfc31235
...
Update runtime files
https://github.com/vim/vim/commit/130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd
2021-05-02 12:03:34 -04:00
Jan Edmund Lazo
330500a5bf
vim-patch:cb80aa2d53e5
...
Update runtime files.
https://github.com/vim/vim/commit/cb80aa2d53e56d3aba3b3c439fb467f29a750c5e
Omit runtime/doc/tabpage.txt.
Patch v8.2.1401 is not ported yet.
Port optwin.vim changes without gettext().
Patch v8.2.1544 is not ported yet.
2021-05-01 22:29:02 -04:00
Jan Edmund Lazo
d1a2523f6c
vim-patch:1d59aa1fdfb1
...
Update runtime files.
https://github.com/vim/vim/commit/1d59aa1fdfb191d9872ff87eb94652acd374b293
2021-05-01 01:37:13 -04:00
Jan Edmund Lazo
7c6ca6fed8
vim-patch:73fef33014db
...
Update runtime files
https://github.com/vim/vim/commit/73fef33014dbf21fc59e7e47fb091117868d82fb
Omit usr_46.txt.
2021-04-28 22:14:37 -04:00
Jan Edmund Lazo
0185625c04
vim-patch:47e13953ffdb
...
Update runtime files
https://github.com/vim/vim/commit/47e13953ffdbb9f163b901196dec8c2100b72edd
Ignore *.rej files, generated by vim-patch.sh.
Source of mistakes for 1st-time contributors.
2021-04-28 21:29:57 -04:00
Jan Edmund Lazo
3d86857f28
vim-patch:2cfb4a2a7248
...
Update runtime files
https://github.com/vim/vim/commit/2cfb4a2a7248eeb40112bb482ab5b15f01b20433
2021-04-28 21:29:56 -04:00
Jan Edmund Lazo
5e1f434764
vim-patch:2963456ff2b7
...
Update runtime files.
https://github.com/vim/vim/commit/2963456ff2b740244b3a064785fe681b1998d75e
2021-04-27 09:21:33 -04:00
Jan Edmund Lazo
52564c9aa2
vim-patch:09c6f265b210
...
Update runtime files.
https://github.com/vim/vim/commit/09c6f265b21065ffa9437837b1d0955137175e45
Omit getmousepos().
Patch v8.1.2304 is not ported yet.
2021-04-27 09:21:30 -04:00
Jan Edmund Lazo
6cdb755507
vim-patch:5ef1c6a4838a
...
Update runtime files
https://github.com/vim/vim/commit/5ef1c6a4838a9629b793f3ae676f72a764171b00
"scrollfocus" is for Windows GUI only so it is N/A.
2021-04-27 09:21:29 -04:00
Jan Edmund Lazo
d4b65fa6fb
vim-patch:1ff14ba24c4d
...
Update runtime files.
https://github.com/vim/vim/commit/1ff14ba24c4d85c008d7abe5e140dbb497ffea8d
2021-04-27 09:21:28 -04:00
Jan Edmund Lazo
766a107839
vim-patch:589edb340454
...
Updte runtime files
https://github.com/vim/vim/commit/589edb340454e7f1b19358f129287a636d53d0e1
Omit state() changes in eval.txt because patch v8.1.2047 is not merged.
2021-04-27 09:21:27 -04:00
Jan Edmund Lazo
b46a92f519
runtime/tar: 23515b4ef7580af8b9d3b964a558ab2007cacda5
...
Port tar files only in order to support '*.tar.zst' files.
Close https://github.com/neovim/neovim/pull/13337
2021-02-17 23:59:17 -05:00
Jan Edmund Lazo
1d84277738
runtime/tar: 2963456ff2b740244b3a064785fe681b1998d75e
...
Port tar files for release v31 only.
2021-02-17 23:39:37 -05:00
Jan Edmund Lazo
44ba77e589
runtime/netrw: 2963456ff2b740244b3a064785fe681b1998d75e
...
Port netrw files for release v168 only.
2021-02-16 07:51:25 -05:00
Jan Edmund Lazo
08947d1642
runtime/netrw: 91359014b359cf816bf943fe2c7d492996263def
...
Port netrw files for release v167 only.
2021-02-15 21:29:20 -05:00
Jan Edmund Lazo
e35c766518
runtime/netrw: 5ef1c6a4838a9629b793f3ae676f72a764171b00
...
Port netrw files only.
2021-02-15 21:16:27 -05:00
Edwin Pujols
ba2e94d223
runtime: Fix man.vim count handling.
...
Here I use a negative number to decide whether the count has been
explicitly set. I think it unlikely that negative sections will ever be
created given that negative numbers complicate argument handling:
```
$ man -1 foo
man: invalid option -- '1'
```
and given that there's already precedence for alphanumeric sections like
`3p`, `3x`, `n`, etc.
---
This does work, though:
```
$ man -S -3 baz
```
With `man baz.-3` and `man 'baz(-3)'`, (GNU) man *might* consider `-3`
internally as a section, but in the end reports as if the whole
argument was the name of a topic:
```
$ man 'baz(-3)'
No manual entry for baz(-3)
```
---
Closes #13411 .
2020-11-29 19:56:15 -04:00
Shougo
9cc702ae11
Add g:loaded_matchit check ( #13226 )
...
I have added g:loaded_matchit check to skip matchit loading like other default plugins.
2020-11-04 18:46:03 -05:00
Anmol Sethi
afaa062643
man.vim: Update maintainer email
2019-11-24 20:31:46 -05:00
Matěj Cepl
9cc8064864
netrw.vim: workaround gx bug #10938
...
ref vim/vim#4738
2019-09-04 06:51:01 -07:00
Justin M. Keyes
05712d4b20
runtime/matchit.vim: workaround broken 'packpath'
...
fix #10680
2019-08-04 16:49:10 +02:00
Justin M. Keyes
7c19a4e518
vim-patch:85850f3a5ef9
...
Update runtime files
https://github.com/vim/vim/commit/85850f3a5ef9f5a9d22e908ef263de8faa265a95
2019-08-02 16:20:22 +02:00
Justin M. Keyes
5342342426
runtime: move matchit.vim to /pack/dist/opt/
...
Align matchit.vim with upstream Vim. We don't want to maintain a fork of
matchit.vim; our small changes should be sent to
https://github.com/chrisbra/matchit
2019-08-01 15:43:53 +02:00
Justin M. Keyes
57fa9add79
vim-patch:314dd79cac2a
...
Update runtime files.
https://github.com/vim/vim/commit/314dd79cac2adc10304212d1980d23ecf6782cfc
2019-07-29 20:50:07 +02:00
Justin M. Keyes
ef1f1907cc
vim-patch:4c05fa08c973
...
Update runtime files
https://github.com/vim/vim/commit/4c05fa08c9739e307ddc88ac91ba6d208f1fd68e
2019-07-29 20:50:07 +02:00
Justin M. Keyes
28a681d37d
vim-patch:f0d58efc9dc4
...
Update runtime files.
https://github.com/vim/vim/commit/f0d58efc9dc46be37c629cbc99b4125448ca39fd
2019-07-29 20:50:07 +02:00
James McCoy
135991712a
rplugin.vim: Add migration support for Windows, nvim/ -> nvim-data/
2018-12-27 21:07:28 -05:00
James McCoy
15cc17521e
Use stdpath() to determine rplugin manifest path
2018-12-20 21:40:05 -05:00
Justin M. Keyes
519224f6bd
matchit.vim: s:MultiMatch(): return Dict
2018-11-28 03:48:06 +01:00
Jan Edmund Lazo
091ae1e63f
vim-patch:8.1.0143: matchit and matchparen don't handle E363
...
Problem: Matchit and matchparen don't handle E363.
Solution: Catch the E363 error. (Christian Brabandt)
https://github.com/vim/vim/commit/3d1d6475f9665660c80cc53a7da2d5450b8b8d08
2018-11-13 21:15:29 -05:00
Jan Edmund Lazo
24ce4c6233
vim-patch:8.1.0115: the matchparen plugin may throw an error
...
Problem: The matchparen plugin may throw an error.
Solution: Change the skip argument from zero to "0".
https://github.com/vim/vim/commit/b7a5ab112ab2267c54acdb6a326642afcd797bc4
2018-11-13 21:13:19 -05:00