aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/highlighter.lua
Commit message (Collapse)AuthorAge
* Merge pull request #14218 from steelsojka/bugfix/check-queries-existThomas Vigouroux2021-04-02
|\ | | | | fix(treesitter): check highlight queries exist
| * fix(treesitter): check highlight queries existSteven Sojka2021-03-26
| |
* | ts: Add per-language highlight linksTJ DeVries2021-03-31
|/
* treesitter: propagate on_detach event properlyBjörn Linse2021-02-10
|
* feat(luahl): add priority mechanismThomas Vigouroux2020-11-25
| | | | | Base priority is 0x1000, in order to stay kinda backward compatible. Also set tree-sitter default highlight to 100 (middle-ish value)
* feat(treesitter): add language treeSteven Sojka2020-11-23
| | | | | | | | | | | | | Implement the LanguageTree structure to enable language injection. This is done be removing the old Parser metatable and replacing by the new structure, with the same API (almost). Some noticeable differences : - `parser:parse()` now returns a table of trees - There is no incremental parsing for child (injected) languages Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* treesitter: add node:id()Björn Linse2020-11-01
|
* treesitter: allow multiple highlighters per bufferThomas Vigouroux2020-10-12
|
* treesitter: allow custom parser for highlighterThomas Vigouroux2020-10-12
| | | | | | | | | | | Also allow to get parser ranges. This will be useful for language injection, allowing us to tweak the parser's ranges on the fly. Update runtime/lua/vim/treesitter.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* treesitter: runtime queriesThomas Vigouroux2020-10-11
| | | | | | | | | | | | | Runtime queries just work like ftplugins, that is: - Queries in the `after` directory are sourced _after_ the "base" query - Otherwise, the last define query takes precedence. Queries can be found in the `queries` directory. Update runtime/lua/vim/treesitter/query.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* api: multiple decoration providers at onceBjörn Linse2020-10-10
|
* luahl: global the luahlBjörn Linse2020-09-13
|
* fix: use luahl in treesitterThomas Vigouroux2020-09-13
|
* wip trying to fix the highlighterThomas Vigouroux2020-09-09
|
* treesitter: use new on_bytes interfaceBjörn Linse2020-09-09
| | | | | | | | | | This will significantly reduce the parsing work needed e.g. when rehighlighting after every keypress in insert mode. Also add safety check for tree-sitter trying to read past the end of a line. This can happen after we sent an incorrect buffer update.
* treesitter: revert wrong optimization in highlightsThomas Vigouroux2020-09-09
|
* apply bfredl suggestionkiyan422020-09-06
|
* treesitter: check hl group exists before passing it in nvim_get_hl_id_by_namekiyan422020-09-05
|
* treesitter: update to use buf_set_extmarkThomas Vigouroux2020-09-03
|
* treesitter(docs): update and refresh docsThomas Vigouroux2020-08-13
|
* treesitter: refactor and use lua regexesThomas Vigouroux2020-08-13