Commit Graph

16607 Commits

Author SHA1 Message Date
tamago324
40a742725c
vim-patch:8.1.0268: file type checking has too many #ifdef (#13182)
Problem:    File type checking has too many #ifdef.
Solution:   Always define the S_IF macros. (Ken Takata, closes vim/vim#3306)
d569bb0299
2020-11-06 17:59:28 -05:00
Björn Linse
d17e508796
Merge pull request #13227 from bfredl/earlyinspect
lua: make vim.inspect available early so it can be used for path debugging
2020-11-05 18:43:00 +01:00
Björn Linse
1b0e4a5906 lua: make vim.inspect available early so it can be used for path debugging 2020-11-05 14:46:41 +01:00
Thomas Vigouroux
0227091fb9
Merge pull request #13229 from ElPiloto/more_treesitter_doc
[RDY] doc: Supplement documentation for treesitter.
2020-11-05 12:08:55 +01:00
Luis Piloto
9162cc5417
Update runtime/doc/treesitter.txt
Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
2020-11-05 09:14:33 +00: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
Jan Edmund Lazo
33560002b4
healthcheck: suggest to skip tests perl provider (#13223)
CPAN tests are unreliable on Windows.
CI does the same to reduce flaky,slow builds.
2020-11-04 18:40:34 -05:00
ElPiloto
d1bed96778 doc: Fix treesitter doc PR. 2020-11-04 19:55:12 +00:00
ElPiloto
44180c3553 doc: Supplement documentation for treesitter.
- Describe query components (capture, match, pattern). Not
well-described in tree-sitter documentation.

- Describe Query() object. Not actually described anywhere in
documenation.
2020-11-04 17:45:38 +00:00
Jan Edmund Lazo
ee3acef386
Merge pull request #13224 from janlazo/vim-8.2.1944
vim-patch:8.1.{1829,1956,2234},8.2.1944
2020-11-04 08:15:16 -05:00
Thomas Vigouroux
8a3a9ffa3d
Merge pull request #13225 from erw7/fix-build-msvc
third-party: fix build failures in MSVC
2020-11-04 13:47:39 +01:00
Björn Linse
9d355b8b0d
Merge pull request #13219 from vigoux/ts-extract-tree
treesitter: separate tree and parser
2020-11-04 13:46:19 +01:00
erw7
05cef2f105 third-party: fix build failures in MSVC 2020-11-04 19:51:54 +09:00
Thomas Vigouroux
c7d460c197
treesitter: separate tree and parser
While this might sound silly, it is needed for further improvements.
2020-11-04 08:14:20 +01:00
Jan Edmund Lazo
fa9dd9abf3
vim-patch:8.1.1956: screenshot tests may use a different encoding
Problem:    Screenshot tests may use a different encoding. (Dominique Pelle)
Solution:   Always set 'encoding' to "utf-8" when running Vim in a terminal.
            (closes vim/vim#4884)
0fdddeeb66

Comment out the encoding change in shared.vim
because Neovim always uses utf-8 for internal character encoding.
2020-11-04 01:51:49 -05:00
Jan Edmund Lazo
7ef3e2b880
vim-patch:8.1.1829: difference in screenshots
Problem:    Difference in screenshots.
Solution:   Update screenshots.  Change checks in a few more tests.
            (closes vim/vim#4789)
39de6413c8

N/A patches for version.c:

vim-patch:8.1.2234: get_short_pathname() fails depending on encoding

Problem:    get_short_pathname() fails depending on encoding.
Solution:   Use the wide version of the library function. (closes vim/vim#5129)
3f39697b73

vim-patch:8.2.1944: Netbeans test is flaky

Problem:    Netbeans test is flaky.
Solution:   Add a short delay. (Yegappan Lakshmanan, closes vim/vim#7246)
6fd3a4ba23
2020-11-04 00:09:07 -05:00
Sean Dewar
aaaad0f593
vim-patch:8.2.1947: crash when using "zj" without folds (#13222)
Problem:    Crash when using "zj" without folds. (Sean Dewar)
Solution:   Check for at least one fold. (closes vim/vim#7245)
c136a3528b
2020-11-03 22:44:08 -05:00
Thomas Vigouroux
eee0668818
Merge pull request #13214 from vigoux/ts-bump-0.17.3
deps(tree-sitter): bump to 0.17.3
2020-11-03 16:29:50 +01:00
Thomas Vigouroux
805b9a2e7b
Merge pull request #13212 from lucc/patch-2
[RDY] docs: Fix typo
2020-11-03 15:22:41 +01:00
Thomas Vigouroux
9e9137ef04
deps(tree-sitter): dump to 0.17.3
Also test the the bundling works correctly.
2020-11-03 13:40:44 +01:00
Thomas Vigouroux
a766695c8b
Merge pull request #12931 from vigoux/treesitter-bundled
bundle: move tree-sitter as a bundled dep
2020-11-03 13:36:25 +01:00
Thomas Vigouroux
8e73cf6731
tree-sitter: ignore some tests on windows
Weirdl this test is failing, but can't reproduce locally, this is an
unnecessary blocker for this PR.
2020-11-03 10:39:36 +01:00
Thomas Vigouroux
823cc66509
deps(treesitter): bump up to 0.17.1 2020-11-03 10:39:36 +01:00
Thomas Vigouroux
3eb241d831
bundle: move tree-sitter as a bundled dep
fixup! bundle: move tree-sitter as a bundled dep

fixup! bundle: move tree-sitter as a bundled dep
2020-11-03 10:39:35 +01:00
Lucas Hoffmann
432f3240f1
docs: Fix typo in example code 2020-11-03 10:05:26 +01:00
Björn Linse
a061d53e18
Merge pull request #13211 from bfredl/fastruntime
api: gotta get the runtime fast
2020-11-03 10:00:25 +01:00
Rom Grk
13e0ca3e19 Merge branch 'master' into add-scroll-events 2020-11-03 03:11:08 -05:00
Björn Linse
4d9e5764d2 api: gotta get the runtime fast 2020-11-03 08:43:42 +01:00
Jan Edmund Lazo
5b5848f2fb
Merge pull request #13209 from janlazo/vim-8.2.1942
vim-patch:8.2.{1165,1942}
2020-11-02 23:54:03 -05:00
Jan Edmund Lazo
0d9fa42d83
fixup! startup: handle autoload and lua packages during startup 2020-11-02 22:37:07 -05:00
Jan Edmund Lazo
1b728490d3
vim-patch:8.2.1942: insufficient test coverage for the Netbeans interface
Problem:    Insufficient test coverage for the Netbeans interface.
Solution:   Add more tests. Fix an uncovered bug. (Yegappan Lakshmanan,
            closes vim/vim#7240)
dbfa795d8b

N/A patches for version.c:

vim-patch:8.2.1165: insufficient testing for the Tcl interface

Problem:    Insufficient testing for the Tcl interface.
Solution:   Add more tests. (Yegappan Lakshmanan, closes vim/vim#6423)
e4358906fd
2020-11-02 22:12:52 -05:00
Thomas Vigouroux
186ba3b688
Merge pull request #13178 from steelsojka/fix-empty-main-query-file
fix(treesitter): account for no main query file
2020-11-02 18:16:37 +01:00
Björn Linse
bab5b2fbda
Merge pull request #13119 from bfredl/luartp
lua: handle require'package.mod' during startup
2020-11-02 18:11:14 +01:00
Björn Linse
c60c7375f5 startup: handle autoload and lua packages during startup
¡NO HAY BANDA!
2020-11-02 15:21:36 +01:00
TJ DeVries
dc14b1468a
lsp: remove vim.NIL from processing (#13174)
* lsp: remove vim.NIL from processing

* lsp: remove instances of vim.NIL
2020-11-02 08:50:44 -05:00
Jan Edmund Lazo
6224ec3d4a
Merge pull request #13204 from janlazo/vim-8.2.1938
vim-patch:8.1.{2030,2063},8.2.{864,1086,1938}
2020-11-02 01:37:05 -05:00
Jan Edmund Lazo
4b65e4aeab
vim-patch:8.2.1086: possibly using freed memory when text properties used
Problem:    Possibly using freed memory when text properties used when
            changing indent of a line.
Solution:   Compute the offset before calling ml_replace().
cf30643ae6
2020-11-01 21:11:02 -05:00
Jan Edmund Lazo
f9adb3eccb
vim-patch:8.2.0864: pragmas are indented all the way to the left
Problem:    Pragmas are indented all the way to the left.
Solution:   Add an option to indent progmas like normal code. (Max Rumpf,
            closes vim/vim#5468)
d881b516da

N/A patches for version.c:

vim-patch:8.1.2030: tests fail when build with normal features and terminal

Problem:    Tests fail when build with normal features and terminal.
            (Dominique Pelle)
Solution:   Disable tests that won't work. (closes vim/vim#4932)
997d42427e

vim-patch:8.1.2063: some tests fail when +balloon_eval_term is missing

Problem:    Some tests fail when +balloon_eval_term is missing but
            _balloon_eval is present. (Dominique Pelle)
Solution:   Check the right feature in the test. (closes vim/vim#4962)
1e82a784ac

vim-patch:8.2.1938: wiping out a terminal buffer makes some tests fail

Problem:    Wiping out a terminal buffer makes some tests fail.
Solution:   Do not wipe out the terminal buffer unless wanted.
a46765a797
2020-11-01 19:55:40 -05:00
Jan Edmund Lazo
90f3a8ba29
Merge pull request #13203 from janlazo/vim-8.2.1936
vim-patch:8.2.1936
2020-11-01 16:39:30 -05:00
Björn Linse
d1091bc658
Merge pull request #12870 from bfredl/themepark
Color themes (per window/line) and lua theme providers
2020-11-01 21:54:51 +01:00
Jan Edmund Lazo
442ad4bb63
fixup! rename: user_funcs -> userfunc 2020-11-01 13:22:52 -05:00
Jan Edmund Lazo
5db836bbca
fixup! eval.c: factor out eval/funcs.c #11828 2020-11-01 13:21:33 -05:00
Björn Linse
c146eddc8b api: add API for themes
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function)

orange is sus??

NOVEMBER DAWN

erase the lie that is redraw_later()
2020-11-01 19:14:56 +01:00
Jan Edmund Lazo
4b398413e4
vim-patch:8.2.1936: session sets the local 'scrolloff' value to the global value
Problem:    Session sets the local 'scrolloff' value to the global value.
Solution:   Do not let restoring the global option value change the local
            value.
388908352f
2020-11-01 12:21:52 -05:00
Jan Edmund Lazo
ff11247837
fixup! refactor: move session functions to ex_session.c 2020-11-01 12:17:39 -05:00
Jesse
720d442d19
lsp: complete support for CodeActionKinds to capabilities (#13180)
We support applying all kinds in the spec equivalently and some servers (including dartls) won't send code actions if support for the relevant kinds is not explicitly stated in the client capabilities. Therefore, this PR makes that support explicit.

Also, as we support all CodeActionKinds, we should also mark the server as supporting code actions when it specifies code action kinds. This is also done in this PR.
2020-11-01 18:11:32 +01:00
Jan Edmund Lazo
ba1ff71078
Merge pull request #13197 from janlazo/vim-8.2.1925
vim-patch:8.2.{639,666,1925,1926,1929,1932}
2020-11-01 12:03:56 -05:00
Björn Linse
8821587748
Merge pull request #13192 from bfredl/nodeid
] treesitter: add node:id()
2020-11-01 17:27:38 +01:00
Thomas Vigouroux
106a6c9548
Merge pull request #13090 from vigoux/tree-sitter-parse-error
tree-sitter: error out when parsing fails
2020-11-01 17:26:31 +01:00
Jan Edmund Lazo
057e21b1e7
vim-patch:8.2.0666: Ruby test fails on MS-Windows
Problem:    Ruby test fails on MS-Windows.
Solution:   Remove the "maintainer" line. (Ken Takata, closes vim/vim#6015)
88e6cc2539

Cherry-pick feature check from patch 8.1.1544.
Cherry-pick test_ruby.vim changes from patch 8.2.0183.
2020-11-01 09:28:39 -05:00