Christian Clason
00debd1fb1
feat(lua): add exec_lua injection for nvim tests
2024-04-05 09:20:31 +02:00
datwaft
965f2e7239
style: format query
2024-03-25 10:57:51 +02:00
datwaft
7051a72755
feat(lua): add injections for vim.filetype.add
2024-03-25 10:57:51 +02:00
Phạm Huy Hoàng
722617e672
refactor(format): drop extra indentation for field
2024-03-21 15:51:26 +01:00
再生花
31641d72a4
feat(format-scripts): linewrap predicates
...
"format-ignore".kick()
2024-02-23 10:42:01 +02:00
Amaan Qureshi
b7fd3d1db4
fix(lua): inject luadoc into comments immediately beginning with a |
2024-01-26 02:14:15 -05:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
2024-01-19 16:58:37 +01:00
Pham Huy Hoang
edee83272e
refactor: manual pre-cleanup
...
Moving comments, adding `format-ignore` to lines that will be better
with it
2024-01-19 16:58:37 +01:00
ObserverOfTime
17fae3f4a3
feat(injections): add printf format strings
2024-01-19 16:58:37 +01:00
Riley Bruins
cd4de5f7b1
fix: cleanup luap injection queries
2023-12-23 22:26:02 +01:00
Pham Huy Hoang
794266a4ed
injections(lua): add vim highlights to api funcs ( #5404 )
...
Add vim injections for `vim.api.nvim[_buf]_create_user_command` and
`vim.api.nvim_create_autocmd`
2023-09-16 19:08:08 +09:00
Christian Clason
bf8b089eec
fix(lua): fix luadoc injections
2023-09-15 14:55:34 +02:00
Pham Huy Hoang
bfb4601f48
refactor: remove include-children from queries ( #5226 )
...
These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2
2023-09-12 08:36:50 +02:00
Pham Huy Hoang
2ee71c1a2f
fix(lua): use include-children instead ( #5299 )
...
The root issue is fixed with neovim 0.9.2. But the current stable
version is neovim 0.9.1, so partially reverts the commit to make it
compatible with the current stable version.
2023-08-22 09:53:11 +09:00
TheLeoP
bbb92b2b8e
fix(lua): luap injection ( #5275 )
...
* fix(lua): luap injection
* test(lua): check for incorrect hlgroup of injected luap
* chore(lua): injections styling
* chore(lua): ignore luacheck for test.lua
2023-08-18 02:17:04 +00:00
Munif Tanjim
5f01ffd478
fix(lua): injections for comment and luadoc
2023-08-16 16:17:13 +02:00
Pham Huy Hoang
78b54eb7f6
chore(injections)!: update injection syntax to 0.9
...
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter
- update health check
- update doc
2023-08-12 17:34:15 +02:00
Pham Huy Hoang
25bdc313c7
fix(lua_inject): remove need for surrounding quote ( #4740 )
2023-04-30 23:46:03 -04:00
Amaan Qureshi
b0fe9cea0e
fix(lua): injection eq should be any-of ( #4711 )
2023-04-26 11:42:06 +09:00
Munif Tanjim
75f911d01f
injections(lua): tweak query to capture string content ( #4707 )
2023-04-25 16:05:52 +02:00
smjonas
1280315db1
injections(lua): highlight vim.api.nvim_exec2
2023-04-24 15:04:34 -04:00
smjonas
72e2e2df86
injections(lua): highlight Lua code in vim.rpcrequest and vim.rpcnotify
2023-04-24 15:04:34 -04:00
Tom van Dijk
5c3e8dee64
fix: get_range shim for playground
2023-03-24 22:17:04 +00:00
Lewis Russell
90ead4ed58
fix: shim 0.9 deprecations
2023-03-24 16:05:38 +01:00
Amaan Qureshi
bc23db2515
feat: add Luadoc
2023-03-20 04:20:49 -04:00
Amaan Qureshi
25f99a270a
feat(lua): add luap injections
2023-03-04 11:32:25 -05:00
Cameron
1e8ad621a5
Extend injections for Lua to use query parser
2023-02-24 09:03:50 +02:00
numToStr
2f671dfa36
change: allow one or more leading ;
2022-08-23 14:04:26 -07:00
numToStr
383d152783
injections(lua): highlight string as query if starts with ;; query
2022-08-23 14:04:26 -07:00
Connor Lay (Clay)
ab372a88ef
Inject query into lua for set_query calls
2022-04-06 18:21:45 +02:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's ( #2272 )
...
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua
BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
vhyrro
d78fb79ed6
Add basic vimscript injection in vim.cmd/nvim_command/nvim_exec ( #1922 )
2021-11-16 21:14:22 -05:00
Stephan Seitz
b7c95eef95
injections(lua): fix cdef injection
...
Fixes #1840
2021-09-25 00:59:40 +02:00
Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* Comment: use `@combined` to create just one tree per buffer
There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251
* Add injections for scss
* Fix jsonc
* Combine jsdoc
2021-04-28 07:19:07 -05:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
Simon Hauser
748ac8f781
Add c injection for ffi.cdef to lua
2021-01-01 11:45:45 +01:00