Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge pull request #14218 from steelsojka/bugfix/check-queries-exist | Thomas Vigouroux | 2021-04-02 |
|\ | | | | | fix(treesitter): check highlight queries exist | ||
| * | fix(treesitter): check highlight queries exist | Steven Sojka | 2021-03-26 |
| | | |||
* | | ts: Add per-language highlight links | TJ DeVries | 2021-03-31 |
| | | |||
* | | ts: Add per-language query overriding | TJ DeVries | 2021-03-30 |
| | | |||
* | | fix(treesitter): dedupe runtime file list | Steven Sojka | 2021-03-23 |
|/ | |||
* | fix: treesitter languagetree crash when using telescope buffer previewer ↵ | Simon Hauser | 2021-02-23 |
| | | | | (#13986) | ||
* | buffer updates: add on_reload callback and handle it in treesitter parser | Björn Linse | 2021-02-10 |
| | |||
* | treesitter: propagate on_detach event properly | Björn Linse | 2021-02-10 |
| | |||
* | treesitter: small fixes | Santos Gallegos | 2021-02-07 |
| | | | | Mostly typos I found while reading the code. | ||
* | fix(languagetree): use tree nodes instead of regions in contains | Steven Sojka | 2021-01-20 |
| | |||
* | treesitter: Fix linter warning and add helper function to remove duplicated ↵ | “jvgrootveld” | 2021-01-18 |
| | | | | | | | logic This function returns the start and stop value if set else the node's range is used When the node's range is used, the stop is incremented by 1 to make the search inclusive | ||
* | treesitter: default start and end row when omitted | “jvgrootveld” | 2021-01-15 |
| | | | | | | | | | | | Add support for default start and end row when omitted in the query:iter_captures and query:iter_matches functions. When the start and end row values are omitted, the values of the given node is used. The end row value is incremented by 1 to include the node end row in the match. Updated tests and docs accordingly. | ||
* | treesitter: simplify query reading logic | Björn Linse | 2021-01-04 |
| | | | | | | | | | | | | | | Only the plugin/package manager should "manage" after/. Consumers of nvim_get_runtime_file() should not need to special case it (if your plugin manager is broken then fix it instead). Don't use vim.fn.readfile(). Lua can already read files. It is even better at it than vim script. expose M.get_query_files(). Listing the queries is essential for user config debug, and let plugins do fun things with it. Abstraction-by-obscurity is not useful (plugins can just cargo cult copy the code anyway, better with public entry points). | ||
* | feat(treesitter): add offset predicate for language injection | Steven Sojka | 2020-12-15 |
| | | | | refactor(treesitter): add directives to queries | ||
* | Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parser | Thomas Vigouroux | 2020-12-10 |
|\ | | | | | fix(treesitter): don't throw an error for missing injected langs | ||
| * | fix(treesitter): don't throw an error for missing injected langs | Steven Sojka | 2020-12-04 |
| | | |||
* | | fix(treesitter): incorrect method name call | Steven Sojka | 2020-12-04 |
|/ | |||
* | Merge pull request #13357 from vigoux/luahl-priority | Björn Linse | 2020-11-25 |
|\ | | | | | feat(luahl): add priority mechanism | ||
| * | feat(luahl): add priority mechanism | Thomas Vigouroux | 2020-11-25 |
| | | | | | | | | | | Base priority is 0x1000, in order to stay kinda backward compatible. Also set tree-sitter default highlight to 100 (middle-ish value) | ||
* | | languagetree: call changedtree callback per tree | Thomas Vigouroux | 2020-11-24 |
| | | | | | | | | Also fix a typo | ||
* | | fix(treesitter): allow ranges in set_included_ranges | Thomas Vigouroux | 2020-11-23 |
|/ | |||
* | feat(treesitter): add language tree | Steven Sojka | 2020-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> | ||
* | tree-sitter: Put base languages first in queries | Stephan Seitz | 2020-11-08 |
| | | | | | | | | This reverts the handling of base languages to the old way how nvim-treesitter handled them. When a language extends a base language it usually wants to be able to overwrite queries. Related: https://github.com/nvim-treesitter/nvim-treesitter/issues/633 | ||
* | Merge pull request #13178 from steelsojka/fix-empty-main-query-file | Thomas Vigouroux | 2020-11-02 |
|\ | | | | | fix(treesitter): account for no main query file | ||
| * | fix(treesitter): account for no main query file | Steven Sojka | 2020-10-28 |
| | | |||
* | | treesitter: add node:id() | Björn Linse | 2020-11-01 |
|/ | |||
* | treesitter: allow multiple highlighters per buffer | Thomas Vigouroux | 2020-10-12 |
| | |||
* | treesitter: allow custom parser for highlighter | Thomas Vigouroux | 2020-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 queries | Thomas Vigouroux | 2020-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 once | Björn Linse | 2020-10-10 |
| | |||
* | treesitter: add string parser (#13008) | Thomas Vigouroux | 2020-09-30 |
| | |||
* | luahl: global the luahl | Björn Linse | 2020-09-13 |
| | |||
* | fix: use luahl in treesitter | Thomas Vigouroux | 2020-09-13 |
| | |||
* | wip trying to fix the highlighter | Thomas Vigouroux | 2020-09-09 |
| | |||
* | treesitter: use new on_bytes interface | Björn Linse | 2020-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 highlights | Thomas Vigouroux | 2020-09-09 |
| | |||
* | Merge pull request #12858 from kyazdani42/fix/no-ts-hl-without-query-value | Thomas Vigouroux | 2020-09-06 |
|\ | | | | | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name | ||
| * | apply bfredl suggestion | kiyan42 | 2020-09-06 |
| | | |||
| * | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name | kiyan42 | 2020-09-05 |
| | | |||
* | | lint: just bit twiddlin' | Björn Linse | 2020-09-06 |
| | | |||
* | | treesitter: simplify match_preds | Thomas Vigouroux | 2020-09-06 |
| | | |||
* | | treesitter: use lua-match? instead of match? | Thomas Vigouroux | 2020-09-06 |
|/ | |||
* | Merge pull request #12847 from nvim-treesitter/ts-list-predicates | Björn Linse | 2020-09-04 |
|\ | | | | | treesitter: allow to list supported predicates | ||
| * | treesitter: allow to list supported predicates | Thomas Vigouroux | 2020-09-04 |
| | | |||
* | | treesitter: update to use buf_set_extmark | Thomas Vigouroux | 2020-09-03 |
|/ | |||
* | treesitter: avoid escaping complete query strings | Stephan Seitz | 2020-08-31 |
| | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595 | ||
* | treesitter: allow to force predicate addition | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add predicate negation | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add and test vim-match? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add contains? predicate | Thomas Vigouroux | 2020-08-13 |
| |