Commit graph

116 commits

Author SHA1 Message Date
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
Munif Tanjim
80b4fa7970 fix(lua): highlights for attribute 2023-09-07 03:36:55 -04: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
ShellCode33
d9e75a1736 queries/*/highlights.scm : remove @spell for strings 2023-08-07 16:39:40 +01:00
Munif Tanjim
a954f789aa
feat(lua): update highlights query for functions (#4919) 2023-06-08 00:12:54 +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
b8a0791eb4 refactor(lua): move _VERSION to @constant.builtin, builtin types to @namespace.builtin 2023-04-28 10:29:42 -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
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04: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
581fc14cea queries(lua): add more keywords related to variable/function builtins, debug, and coroutines 2023-03-20 03:13:41 -04:00
Amaan Qureshi
2170a36416 fix(lua): properly highlight labels 2023-03-20 03:13:00 -04:00
Amaan Qureshi
11b2d430e6 feat(lua): add more builtin variables per lua_ls 2023-03-11 15:16:46 -05:00
Amaan Qureshi
5a87bc98da feat: add @comment.documentation where applicable 2023-03-05 17:15:32 -05: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
Jaehwang Jung
a0dc6c8635 highlights(lua): use @method.call 2022-12-15 12:42:51 +01:00
Christian Clason
e7bdcee167 lua: update queries 2022-11-01 13:41:33 +01:00
beardedsakimonkey
e218a862a1 locals(lua): fix directive not applying
fixes #3280
2022-10-17 08:21:55 +02:00
ObserverOfTime
9b43ab819c highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
Lewis Russell
37398c7d68 feat(spell): support more languages 2022-09-26 13:47:12 +01:00
Lewis Russell
c836f946a9 highlights(lua): add spell 2022-09-12 11:02:35 +01: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
lfenzo
c784720917 Split func/method definition from calls in several programming language queries 2022-08-03 12:05:30 -07:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) (#3207) 2022-07-21 13:48:03 +02:00
Janfel
881b932893 highlights(lua): use #eq? instead of #match?
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2022-06-24 20:27:58 +02:00
Janfel
8d43730388 highlights(lua): highlight only self as self
Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
2022-06-24 20:27:58 +02:00
Jędrzej Boczar
717fef738b fix(indent/lua): wrong for nested tables due to branch on opening pairs 2022-04-06 21:28:11 +02:00
Connor Lay (Clay)
ab372a88ef Inject query into lua for set_query calls 2022-04-06 18:21:45 +02:00
Christian Clason
6ece0ca4e6 fix(lua): restore precedence for @variable.builtin and @constant.builtin 2022-03-12 23:00:08 +01:00
Stephan Seitz
5fd68ba0c2 indents(lua): make ")" `@indent_end
Fixes #2476
2022-02-06 20:47:15 +01:00
Stephan Seitz
a14970861c indents(lua): use (comment) @auto 2022-02-05 18:54:55 +01:00
Stephan Seitz
1b0a74afa8 indent(lua): ignore comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
ff96940767 docs: add @zero_indent to CONTRIBUTING.md 2022-02-05 18:54:55 +01:00
Stephan Seitz
eb2b73a5b0 indents(lua): fix comment indentation 2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519 fix(indents): re-parse before each indent 2022-02-05 18:54:55 +01:00
Munif Tanjim
11e7ee1d91
fix(indent): lua - support @indent_end (#2454) 2022-02-04 22:08:18 +01:00
Stephan Seitz
fa8172ffb4 highlights(lua): don't highlight arguments as parameters 2022-01-30 09:55:48 +01:00
Munif Tanjim
c0110e34aa feat: rewrite indent module 2022-01-21 10:51:51 +01:00