summaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)Author
2020-10-30fix(languagetree): highlight children regardless of starting columnSteven Sojka
2020-10-28fix(#620): Fall into the "update-all" branch if lang is "all"BodneyC
2020-10-26Add virtual range for creating node-like objects from multiple nodesStephan Seitz
2020-10-26feat(install): add "maintained" option to only install maintained parsersStephan Seitz
Unmaintained parsers only give users little benefit but take sometimes a a long time to install (e.g. Markdown, Julia, Haskell parser). We could recommend to only install maintained parsers by default.
2020-10-24show [treesitter] during installkyazdani42
2020-10-24feat: add TSConfigInfo to display current configStephan Seitz
https://nvim-treesitter.zulipchat.com/#narrow/stream/252271-general/topic/Random/near/210929394
2020-10-22fix(markdown): remove from parser listThomas Vigouroux
Bye bye markdown
2020-10-22fix(markdown): disable highlightingThomas Vigouroux
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.
2020-10-21LanguageTree: don't error when injecting a languageSantos Gallegos
2020-10-21fix(languagetree): avoid language self-injectionThomas Vigouroux
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.
2020-10-20Add verilog/systemverilog queriesZeger Van de Vannet
2020-10-19Remove textobjects from built_in_query_groupsStephan Seitz
2020-10-19Treesitter indentkiyan42
also fixes the memoize_by_buf_tick function
2020-10-19start indent modulekiyan42
2020-10-19feat(languagetree): implement language treeThomas Vigouroux
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>
2020-10-16Fix: avoid overwriting tables in insert_to_pathStephan Seitz
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
2020-10-16Remove get_parser logickiyan42
upstream now handles parsers by itself, so we don't need to do it in this repo.
2020-10-13fix(highlights): use new highlighter interfaceThomas Vigouroux
2020-10-12query: remove unnecessary query parsingThomas Vigouroux
2020-10-12highlight: use new highlighter interfaceThomas Vigouroux
2020-10-11feat(queries): modeline mechanism for base langsThomas Vigouroux
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.
2020-10-11Use utils get_node_text to get line content and trim all whitespaces.Kristijan Husak
2020-10-11Remove old statusline implementation with new one.Kristijan Husak
2020-10-11Add implementation for improved statusline. Closes #545.Kristijan Husak
2020-10-10fix(highlights): Add TSNamespace highlightStephan Seitz
Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
2020-10-06Shorten module reference shell_command_selectors to shell.Suhas Hebbar
2020-10-06Code RefactorSuhas Hebbar
- Move select_* function to shell_command_selectors.lua. - Rename select_args to select_compiler_args.
2020-10-06Remove dependency on unzip.Suhas Hebbar
Use tar instead which should be available on default Unixes and Windows
2020-10-05Add teal parserCorey Williamson
2020-10-04Fix: fallback git-installation (list of commands is expected)Stephan Seitz
2020-10-04feat: add ocamllex parser and highlightsPau Ruiz Safont
2020-10-04Remove textobjects moduleStephan Seitz
2020-10-04Merge pull request #487 from steelsojka/remove-refactorSteven Sojka
chore(modules): remove refactor module
2020-09-30initial support for CodeQLAlvaro Muñoz
2020-09-28chore: dedup join_paths <-> join_pathStephan Seitz
2020-09-27Add progress info to iter_cmdStephan Seitz
2020-09-27Add lockfile and make lockfile default install revisionStephan Seitz
2020-09-25chore(modules): remove refactor moduleSteven Sojka
2020-09-22feat(parsers): add possibility to install from other branchesStephan Seitz
More and more Github repos are switching to "main" branch. Example: `tree-sitter-wasm`
2020-09-20fix(checkhealth): use pcall to check for syntax errors in query filesStephan Seitz
2020-09-19feat(install): make compiler selectableStephan Seitz
Compilers are selectable via 'nvim-treesitter.install'.compilers (list of compilers) or environment variable CC Addresses #502
2020-09-19fix: only concatenate cmd.err if not nilStephan Seitz
2020-09-19feat(install): print more information when there's a failurePau Ruiz Safont
2020-09-19feat: add parser for ocaml interface filesPau Ruiz Safont
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.
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-18Ensure that updated files are replaced w/o warningRasmus Michelsen
2020-09-18Re-add attribute highlightAkin Sowemimo
2020-09-18Add TSTag and TSTagDelimiter groupsTravonteD
These groups will be added for use with xml-like tags such as html and jsx.
2020-09-18Make :TSInstall work in Nix by adding a second module installation target (#473)Florian Beeres
* 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.
2020-09-16fix(folds): has_fold -> has_foldsStephan Seitz