aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* feat: add TSConfigInfo to display current configStephan Seitz2020-10-241-0/+18
| | | | https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
* fix(markdown): remove from parser listThomas Vigouroux2020-10-221-6/+7
| | | | Bye bye markdown
* fix(markdown): disable highlightingThomas Vigouroux2020-10-221-1/+1
| | | | | | The markdown scanner errors out far too often to be usable, disabling it by default would avoid many issues until those assertion errors are fixed.
* LanguageTree: don't error when injecting a languageSantos Gallegos2020-10-211-1/+0
|
* fix(languagetree): avoid language self-injectionThomas Vigouroux2020-10-211-7/+14
| | | | | | This avoids some stack overflows when a language includes itself. This is a temporary solution, and will be addressed later when actually managing our own parsers.
* Add verilog/systemverilog queriesZeger Van de Vannet2020-10-201-0/+8
|
* Remove textobjects from built_in_query_groupsStephan Seitz2020-10-191-1/+1
|
* Treesitter indentkiyan422020-10-194-55/+56
| | | | also fixes the memoize_by_buf_tick function
* start indent modulekiyan422020-10-192-0/+75
|
* feat(languagetree): implement language treeThomas Vigouroux2020-10-192-6/+167
| | | | | | | Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
* Fix: avoid overwriting tables in insert_to_pathStephan Seitz2020-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | The following query will result in matches with only one node though it requires two nodes to be a match. ```scheme (function_definition (comment) @function.inner.start body: (block) @function.inner) ``` Why? First `insert_to_path` is called for `@function.inner.start` which will result int the following table. ```lua { function = { inner = { start { node } } } } ``` `insert_to_path` will overwrite the result ```lua { function = { inner = { node } } } ``` Related #552
* Remove get_parser logickiyan422020-10-161-7/+1
| | | | | upstream now handles parsers by itself, so we don't need to do it in this repo.
* fix(highlights): use new highlighter interfaceThomas Vigouroux2020-10-131-2/+2
|
* query: remove unnecessary query parsingThomas Vigouroux2020-10-121-84/+5
|
* highlight: use new highlighter interfaceThomas Vigouroux2020-10-121-1/+1
|
* feat(queries): modeline mechanism for base langsThomas Vigouroux2020-10-111-31/+39
| | | | | | | | This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
* Use utils get_node_text to get line content and trim all whitespaces.Kristijan Husak2020-10-111-3/+2
|
* Remove old statusline implementation with new one.Kristijan Husak2020-10-111-27/+4
|
* Add implementation for improved statusline. Closes #545.Kristijan Husak2020-10-111-0/+52
|
* fix(highlights): Add TSNamespace highlightStephan Seitz2020-10-101-0/+1
| | | | | | | | | Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
* Shorten module reference shell_command_selectors to shell.Suhas Hebbar2020-10-061-9/+8
|
* Code RefactorSuhas Hebbar2020-10-062-176/+184
| | | | | - Move select_* function to shell_command_selectors.lua. - Rename select_args to select_compiler_args.
* Remove dependency on unzip.Suhas Hebbar2020-10-061-9/+34
| | | | Use tar instead which should be available on default Unixes and Windows
* Add teal parserCorey Williamson2020-10-051-0/+8
|
* Fix: fallback git-installation (list of commands is expected)Stephan Seitz2020-10-041-13/+15
|
* feat: add ocamllex parser and highlightsPau Ruiz Safont2020-10-041-0/+8
|
* Remove textobjects moduleStephan Seitz2020-10-046-360/+0
|
* Merge pull request #487 from steelsojka/remove-refactorSteven Sojka2020-10-045-294/+0
|\ | | | | chore(modules): remove refactor module
| * chore(modules): remove refactor moduleSteven Sojka2020-09-255-294/+0
| |
* | initial support for CodeQLAlvaro Muñoz2020-09-301-0/+8
| |
* | chore: dedup join_paths <-> join_pathStephan Seitz2020-09-282-12/+7
| |
* | Add progress info to iter_cmdStephan Seitz2020-09-271-4/+36
| |
* | Add lockfile and make lockfile default install revisionStephan Seitz2020-09-273-48/+141
|/
* feat(parsers): add possibility to install from other branchesStephan Seitz2020-09-221-1/+8
| | | | | More and more Github repos are switching to "main" branch. Example: `tree-sitter-wasm`
* fix(checkhealth): use pcall to check for syntax errors in query filesStephan Seitz2020-09-201-1/+7
|
* feat(install): make compiler selectableStephan Seitz2020-09-191-3/+6
| | | | | | Compilers are selectable via 'nvim-treesitter.install'.compilers (list of compilers) or environment variable CC Addresses #502
* fix: only concatenate cmd.err if not nilStephan Seitz2020-09-191-1/+3
|
* feat(install): print more information when there's a failurePau Ruiz Safont2020-09-191-2/+3
|
* feat: add parser for ocaml interface filesPau Ruiz Safont2020-09-192-0/+11
| | | | | | The files have the mli extension. The parser grammar uses the name ocaml_interface, but since vim the underscore has a special meaning ocamlinterface is used as the filetype.
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-1/+2
| | | | @exception for Java/JS
* Ensure that updated files are replaced w/o warningRasmus Michelsen2020-09-181-1/+1
|
* Re-add attribute highlightAkin Sowemimo2020-09-181-0/+1
|
* Add TSTag and TSTagDelimiter groupsTravonteD2020-09-181-0/+4
| | | | | These groups will be added for use with xml-like tags such as html and jsx.
* Make :TSInstall work in Nix by adding a second module installation target (#473)Florian Beeres2020-09-182-13/+78
| | | | | | | | | | | | | | | | | | | | * Ignore tags file in project root * Make :TSInstall work with Nix This commit adds logic to determine where to install parsers, meaning the *.so files. Until now the package path of the nvim-treesitter plugin was used. But when installed with Nix, the plugin lands in "/nix/store", which is read-only. With this commit $XDG_DATA_HOME/nvim/site/parser/*.go will be used as the parser installation path. The directory will be created if it doesn't exist. * Add generate_join function The generate_join function is used to create two other functions, one to join path segments, the other to join strings with a space for error messages.
* fix(folds): has_fold -> has_foldsStephan Seitz2020-09-161-1/+1
|
* add TSNonekiyan422020-09-151-0/+2
|
* Folds: rename query files to folds.scm to be consistentSantos Gallegos2020-09-142-2/+2
| | | | We use plural names for all query files except folds.
* TextObjects: refactor wrong func namesSantos Gallegos2020-09-121-6/+6
| | | | | | Reading the code, these functions should be named differently https://github.com/nvim-treesitter/nvim-treesitter/blob/a755017dd52947672af458743b88e59a59cd592f/lua/nvim-treesitter/query.lua#L203-L203
* Yield meaningful error messages in iter_cmd{,_sync} when cmd.err == nilStephan Seitz2020-09-111-2/+4
|
* Allow to call setup on already loaded modules.Santos Gallegos2020-09-111-1/+1
|