aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-125-580/+0
|
* fix(lua): remove duplicate `nvim_command` (#7477)phanium2024-12-171-2/+1
|
* fix(lua): remove duplicate ellipsis highlightRiley Bruins2024-09-141-2/+0
|
* fix(lua): proper indent after multiline string argRiley Bruins2024-08-051-0/+1
|
* fix(lua): use @property for keys in table literals (#6956)Tyler Miller2024-07-211-1/+1
| | | | | | `@property` should be used for key-value pairs, while `@variable.member` is used for field-access/index-expressions. Using different captures also provides the benefit of allowing the two to be highlighted differently.
* fix(lua): indent functions before they are closedRiley Bruins2024-07-161-1/+6
| | | | Fixes #6786
* chore: clean duplicate nodeCharles Chiu2024-06-121-1/+0
|
* feat(lua): add `exec_lua` injection for nvim testsChristian Clason2024-04-051-0/+9
|
* style: format querydatwaft2024-03-251-11/+8
|
* feat(lua): add injections for `vim.filetype.add`datwaft2024-03-251-0/+18
|
* refactor(format): drop extra indentation for fieldPhạm Huy Hoàng2024-03-213-130/+109
|
* feat(format-scripts): linewrap predicates再生花2024-02-232-9/+8
| | | "format-ignore".kick()
* fix(lua): inject luadoc into comments immediately beginning with a `|`Amaan Qureshi2024-01-261-1/+1
|
* chore: query formattingPham Huy Hoang2024-01-195-191/+233
|
* refactor: manual pre-cleanupPham Huy Hoang2024-01-192-4/+6
| | | | | Moving comments, adding `format-ignore` to lines that will be better with it
* feat!: align standard captures with upstreamChristian Clason2024-01-191-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md`
* feat(injections): add printf format stringsObserverOfTime2024-01-191-0/+17
|
* feat(locals)!: switch to upstream capturesChristian Clason2024-01-191-10/+10
|
* fix: cleanup luap injection queriesRiley Bruins2023-12-231-24/+2
|
* feat: more `@string.regex` highlightsRiley Bruins2023-12-231-0/+20
|
* feat(lua): folds for parameter, argument listsRiley Bruins2023-11-191-0/+2
|
* refactor: Remove all `(ERROR) @error` capturesPham Huy Hoang2023-10-251-3/+0
| | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries.
* feat(lua): highlight variadic expressions as builtin parameters (#5567)Riley Bruins2023-10-241-0/+2
|
* injections(lua): add vim highlights to api funcs (#5404)Pham Huy Hoang2023-09-161-0/+70
| | | | Add vim injections for `vim.api.nvim[_buf]_create_user_command` and `vim.api.nvim_create_autocmd`
* fix(lua): fix luadoc injectionsChristian Clason2023-09-151-1/+1
|
* refactor: remove `include-children` from queries (#5226)Pham Huy Hoang2023-09-121-6/+6
| | | These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2
* fix(lua): highlights for attributeMunif Tanjim2023-09-071-3/+4
|
* fix(lua): use include-children instead (#5299)Pham Huy Hoang2023-08-221-5/+7
| | | | | 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.
* fix(lua): luap injection (#5275)TheLeoP2023-08-181-5/+27
| | | | | | | | | * fix(lua): luap injection * test(lua): check for incorrect hlgroup of injected luap * chore(lua): injections styling * chore(lua): ignore luacheck for test.lua
* fix(lua): injections for comment and luadocMunif Tanjim2023-08-161-4/+5
|
* chore(injections)!: update injection syntax to 0.9Pham Huy Hoang2023-08-122-18/+28
| | | | | | | | | 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
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* feat(lua): update highlights query for functions (#4919)Munif Tanjim2023-06-081-5/+32
|
* fix(lua_inject): remove need for surrounding quote (#4740)Pham Huy Hoang2023-04-301-2/+2
|
* refactor(lua): move _VERSION to `@constant.builtin`, builtin types to ↵Amaan Qureshi2023-04-281-1/+7
| | | | `@namespace.builtin`
* fix(lua): injection eq should be any-of (#4711)Amaan Qureshi2023-04-261-1/+1
|
* injections(lua): tweak query to capture string content (#4707)Munif Tanjim2023-04-251-1/+1
|
* injections(lua): highlight vim.api.nvim_exec2smjonas2023-04-241-2/+2
|
* injections(lua): highlight Lua code in vim.rpcrequest and vim.rpcnotifysmjonas2023-04-241-1/+8
|
* fix: `get_range` shim for playgroundTom van Dijk2023-03-241-1/+1
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-6/+7
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* fix: shim 0.9 deprecationsLewis Russell2023-03-241-1/+1
|
* feat: add LuadocAmaan Qureshi2023-03-201-0/+4
|
* queries(lua): add more keywords related to variable/function builtins, ↵Amaan Qureshi2023-03-201-3/+9
| | | | debug, and coroutines
* fix(lua): properly highlight labelsAmaan Qureshi2023-03-201-2/+7
|
* feat(lua): add more builtin variables per lua_lsAmaan Qureshi2023-03-111-1/+1
|
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+6
|
* feat(lua): add luap injectionsAmaan Qureshi2023-03-041-0/+26
|
* Extend injections for Lua to use query parserCameron2023-02-241-1/+1
|
* highlights(lua): use @method.callJaehwang Jung2022-12-151-1/+1
|