bfredl
5b8d6e0b32
Merge pull request #15391 from vigoux/ts-lua-builtin
...
feat(treesitter): highlighting for core languages, enabled for Lua
2022-09-06 10:10:01 +02:00
Christian Clason
4bf005e9fd
vim-patch:partial 0daafaa7d99e ( #20083 )
...
Update runtime files
0daafaa7d9
skip vim9script ftplugin
create userfunc.txt from Neovim content (skip section 3, needs 9.0.0379)
2022-09-06 08:57:53 +02:00
Lewis Russell
5b7213ad7f
docs: update .mailmap ( #20086 )
...
Co-authored-by: dundargoc <33953936+dundargoc@users.noreply.github.com >
2022-09-06 08:57:03 +02:00
Christian Clason
0822896efc
feat(treesitter): add vim.treesitter.start(), enable for Lua
...
* Add vim.treesitter.start() for starting treesitter highlighting via
ftplugin or autocommand (can be extended later for fold, indent,
matchpairs, ...)
* Add vim.treesitter.stop() for manually stopping treesitter
highlighting
* Enable treesitter highlighting for Lua if
`vim.g.ts_highlight_lua = true` is set in `init.lua`
2022-09-06 08:08:29 +02:00
Christian Clason
97f38f0a9b
fix(treesitter): do not link @error by default
...
The @error capture is used for tree-sitter's ERROR node, which indicates
a parsing error -- which can be quite frequent (and jarring) while typing.
Users can still manually `hi link @error Error` in their config.
2022-09-06 07:57:46 +02:00
Christian Clason
64cc78c9f3
feat(treesitter): add injections
2022-09-06 07:57:46 +02:00
Christian Clason
e85b8aa768
feat(treesitter): add viml parser and queries
2022-09-06 07:57:46 +02:00
Christian Clason
6254b0fd3b
ci(tests): don't skip parsers on functionaltest
...
Treesitter parsers are now a mandatory part of the installation and
should be tested on all platforms. Remove `pending_c_parser` helper.
2022-09-06 07:57:46 +02:00
Thomas Vigouroux
905dd49fec
feat(treesitter): bundle Lua parser and queries
...
parser from https://github.com/MunifTanjim/tree-sitter-lua
queries from nvim-treesitter
2022-09-06 07:57:46 +02:00
zeertzjq
fb39bba5a6
Merge pull request #20088 from zeertzjq/vim-9.0.0386
...
vim-patch:9.0.0386: some code blocks are nested too deep
N/A patches for version.c:
vim-patch:9.0.0385: GUI: when CTRL-D is mapped in Insert mode it gets inserted
2022-09-05 23:02:01 +08:00
zeertzjq
f6a8d395a7
refactor(ex_cd): add an early return to fix clint warning
...
The popupmenu.c change is unrelated.
2022-09-05 22:36:09 +08:00
zeertzjq
fc7a64291a
vim-patch:9.0.0386: some code blocks are nested too deep
...
Problem: Some code blocks are nested too deep.
Solution: Bail out earlier. (Yegappan Lakshmanan, closes vim/vim#11058 )
b1f471ee20
2022-09-05 22:36:09 +08:00
UnkwUsr
a220650fd6
docs(contributing): fix broken link ( #20044 )
2022-09-05 08:44:52 +02:00
zeertzjq
5ac6654334
Merge pull request #19481 from zeertzjq/vim-8.2.4674
...
Add 'mousemoveevent' as a UI option
2022-09-04 21:44:31 +08:00
zeertzjq
82d128405a
feat(pum): pretend 'mousemoveevent' is set when showing right-click menu
2022-09-04 21:18:23 +08:00
zeertzjq
ceb09701f2
feat(api): add "move" to nvim_input_mouse
2022-09-04 21:18:23 +08:00
zeertzjq
04bd700ac3
feat(tui): support 'mousemoveevent'
2022-09-04 21:18:22 +08:00
zeertzjq
a5fe7940c8
feat(ui-ext): make 'mousemoveevent' a ui_option
2022-09-04 21:18:22 +08:00
zeertzjq
00b49dd8dd
vim-patch:8.2.4674: cannot force getting MouseMove events
...
Problem: Cannot force getting MouseMove events.
Solution: Add the 'mousemoveevent' option with implementaiton for the GUI.
(Ernie Rael, closes vim/vim#10044 )
c4cb544cd5
This only ports the docs and the option variable.
The following commits will actually implement it as a UI option.
2022-09-04 21:18:08 +08:00
zeertzjq
900a774182
Merge pull request #20073 from zeertzjq/vim-088e8e344352
...
vim-patch:7.4.{1578,1624},088e8e344352
2022-09-04 20:41:01 +08:00
zeertzjq
21dad0dcf3
vim-patch:088e8e344352
...
Update runtime files.
088e8e3443
Also cherry-pick "partial" tag from a later runtime update.
2022-09-04 18:39:55 +08:00
zeertzjq
6f7d55d3d9
vim-patch:7.4.{1578,1624}
...
975b5271ee
03602ec28e
2022-09-04 18:39:55 +08:00
Christian Clason
24fbda04b9
build(deps): bump tree-sitter-c to v0.20.2 ( #20079 )
2022-09-04 12:09:04 +02:00
Gregory Anders
ea10e0c104
ci: remove gpanders from api reviewers ( #20074 )
2022-09-03 21:49:45 -06:00
Christian Clason
927d4d2a15
fix(filetype): run filetype.match on StdinReadPost ( #20070 )
...
Problem: filetype detection does not run on piped input
Solution: add `StdinReadPost` to main filetype.lua autocommand
Rationale: legacy filetype detection checked contents by sourcing
`scripts.vim` in separate autocommands, including on `StdinReadPost`.
For Lua filetype detection, this was moved into the main autocommand,
with bundled `scripts.vim` gated behind `g:do_legacy_filetype` (i.e.,
only user `scripts.vim` are sourced for compatibility by default). Adding
`StdinReadPost` to the main autocommand again runs content checks on
piped input without requiring code duplication and low-payoff
refactoring.
2022-09-03 19:27:57 +02:00
Stephan Seitz
c50460cf3b
feat(treesitter): include language in invalid query error ( #14053 )
2022-09-03 16:02:58 +02:00
dundargoc
ea611c7122
ci(clint): remove "Inner expression indentation should be 4" rule ( #20047 )
...
It completely breaks down in shada.c and is generally useless.
2022-09-03 12:00:00 +02:00
Christian Clason
5296e9407d
build(deps): bump tree-sitter to v0.20.7 ( #20067 )
2022-09-03 11:30:24 +02:00
Lewis Russell
1e3073bc35
docs: update .git-blame-ignore-revs ( #20066 )
2022-09-03 10:18:05 +01:00
zeertzjq
042d5df956
Merge pull request #20063 from zeertzjq/vim-9.0.0360
...
vim-patch:8.2.1505,9.0.{0360,0362}
2022-09-03 09:39:13 +08:00
zeertzjq
c62e5b5079
vim-patch:9.0.0362: expanding ":e %" does not work for remote files
...
Problem: Expanding ":e %" does not work for remote files.
Solution: If the "%" or "#" file does not exist add the expansion anyway.
f5724376ab
2022-09-03 09:01:09 +08:00
zeertzjq
7243b1cbde
vim-patch:9.0.0360: crash when invalid line number on :for is ignored
...
Problem: Crash when invalid line number on :for is ignored.
Solution: Do not check breakpoint for non-existing line.
35d21c6830
Test does not fail without the fix in Nvim as Nvim uses 0 when line
number overflows. If it is changed to MAXLNUM then the test does fail
without the fix, but using 0 seems better as E481 is still given.
2022-09-03 09:01:09 +08:00
zeertzjq
05b49ef975
vim-patch:8.2.1505: not all file read and writecode is tested
...
Problem: Not all file read and writecode is tested.
Solution: Add a few tests. (Dominique Pellé, closes vim/vim#6764 )
1b04ce2d40
Cherry-pick Test_glob() from patch 8.2.0634.
2022-09-03 09:01:08 +08:00
Lewis Russell
1ffd527c83
refactor: migrate comment style ( #20012 )
...
Done automatically using the following perl command:
perl -pi -0777pe 's#\n\K */\*\n(.+?)\s*\*/\n#join("\n", map { $_ =~ s:^\s*\K \*://:; $_ } split("\n", $1)) . "\n"#sge' src/nvim/**/*.c
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-02 17:39:49 +01:00
bfredl
69456f3414
Merge pull request #20026 from dundargoc/refactor/char_u/7
...
refactor: replace char_u with char 7: remove `vim_strnsave`
2022-09-02 17:06:00 +02:00
Lewis Russell
2afcdbd63a
feat(Man): port to Lua ( #19912 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-02 15:20:29 +01:00
bfredl
e085d0be31
Merge pull request #20055 from famiu/fix/ui-attach/memory-leak
...
fix(ui): ui compositor does not correctly free event callbacks
2022-09-02 15:07:39 +02:00
Famiu Haque
2dd55f81f7
fix(ui): ui compositor does not correctly free event callbacks
...
Prior to this PR, when freeing event callbacks, UI compositor did not
free the luarefs which could cause potential memory leaks. This PR fixes
that by freeing the luarefs properly.
2022-09-02 17:49:51 +06:00
Jonas Strittmatter
ce80b8f50d
vim-patch:9.0.0349: filetype of *.sil files not well detected ( #20050 )
...
Problem: Filetype of *.sil files not well detected.
Solution: Inspect the file contents to guess the filetype.
be807d5824
2022-09-02 08:16:17 +02:00
zeertzjq
12fe197cff
Merge pull request #20040 from zeertzjq/vim-9.0.0342
...
vim-patch:9.0.{0342,0346}: :horizontal modifier
2022-09-01 21:31:38 +08:00
zeertzjq
689f5d604e
feat(api): add support for :horizontal modifier
2022-09-01 20:53:43 +08:00
zeertzjq
56bf026dea
vim-patch:9.0.0346: :horizontal modifier not fully supported
...
Problem: :horizontal modifier not fully supported.
Solution: Also use :horizontal for completion and user commands.
(closes vim/vim#11025 )
d3de178e53
2022-09-01 20:28:23 +08:00
zeertzjq
c65b1f3e15
vim-patch:9.0.0342: ":wincmd =" equalizes in two directions
...
Problem: ":wincmd =" equalizes in two directions.
Solution: Make ":vertical wincmd =" equalize vertically only and
":horizontal wincmd =" equalize horizontally only.
21c3a80a7f
2022-09-01 20:25:29 +08:00
Dundar Göc
49e893f296
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-01 10:47:42 +02:00
zeertzjq
db2e5f46f5
fix(lua): make ui_attach()/ui_detach() take effect immediately ( #20037 )
2022-09-01 16:37:29 +08:00
bfredl
48ca1d4ce8
Merge pull request #20022 from dundargoc/refactor/char_u/6
...
refactor: replace char_u with char 6
2022-09-01 10:25:27 +02:00
bfredl
d9a873f278
Merge pull request #20038 from bfredl/unflush
...
perf(messages): don't call ui_flush() per message line in various places
2022-09-01 10:18:14 +02:00
bfredl
5f92d9b345
perf(messages): don't call ui_flush() per message line in various places
...
When msgsep is used, message scrolling is emulated. To make message
output fast, inhibit emulated scrolling until the full message text
is known
2022-09-01 09:44:01 +02:00
bfredl
dd8489c399
Merge pull request #20023 from bfredl/hlarena
...
refactor(highlight): make hlattrs2dict always use pre-allocated dict
2022-09-01 09:22:31 +02:00
zeertzjq
a62cb406b1
fix(maparg): remove double allocation ( #20033 )
...
ASAN doesn't catch this, as it is referenced by the garbage collector.
Also remove a condition that is always true.
2022-09-01 10:22:28 +08:00