aboutsummaryrefslogtreecommitdiffstats
path: root/lua
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Improve startuptimeSantos Gallegos2020-09-102-83/+57
| | | | | | - Don't load everything at startup - Don't define an autocomand for each module and for each supported lang (this creates nxm autocomand!)
* Find package path based on the Lua source fileMarkus Koller2020-09-102-15/+6
| | | | | | This is more robust compared to the previous method where we walked up the tree and matched on the directory name, which also required that the repository was cloned in a directory named `nvim-treesitter`.
* Ocaml: fix parserSantos Gallegos2020-09-101-0/+1
| | | | Paths were changed https://github.com/tree-sitter/tree-sitter-ocaml/pull/41
* Fix #418: iterator function should always return an iteratorStephan Seitz2020-09-081-3/+3
| | | | Even if it's an empty iterator.
* feat(parsers): add filetype PKGBUILDStephan Seitz2020-09-081-1/+1
|
* Import treesitter.install only when neededSantos Gallegos2020-09-081-1/+5
|
* Improve startup performanceSantos Gallegos2020-09-081-2/+14
|
* Queries: merge query_extensions into base_language_mapSantos Gallegos2020-09-081-12/+2
| | | | These two are doing the same currently.
* fix using highlight query extension for every query typekyazdani422020-09-071-13/+7
|
* Incremental selection: fix skipping some nodesSantos Gallegos2020-09-071-25/+28
| | | | | | | | | | | | | The range from ts nodes are a little different than neovim's nodes. They start at 0 and the end is exclusive. For example, a nvim range (1, 3, 2, 4) is the equivalent to the ts range (0, 2, 1, 4). Since we may hit parent nodes that have the same range as its child, we skip those till we find one that actually changes the selection (since this is the relevant part for the user). Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/232
* Fold: respect max_fold_level from 'foldnestmax'Santos Gallegos2020-09-071-4/+11
|
* Text objects: check for query files firstSantos Gallegos2020-09-061-1/+1
| | | | The first function is faster and more common.
* Fixed table insertionRasmus Michelsen2020-09-061-1/+1
|
* Fixed win32 check hopefullyRasmus Michelsen2020-09-061-6/+6
|
* Added changesRasmus Michelsen2020-09-061-22/+12
|
* A few fixesRasmus Michelsen2020-09-061-2/+1
|
* Local variable fixRasmus Michelsen2020-09-061-1/+1
|
* Support TSInstall on Winddows with ClangRasmus Michelsen2020-09-061-42/+106
|
* Completion: use custom instead of customlistSantos Gallegos2020-09-053-9/+9
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
* fix ts_available_modules should be using nvim_treesitter#available_moduleskiyan422020-09-051-2/+2
|
* Refactor: move completion functions to autoloadSantos Gallegos2020-09-043-21/+21
|
* preds: declare set! predicateThomas Vigouroux2020-09-031-0/+3
|
* Add warning about required Neovim versionStephan Seitz2020-09-031-0/+6
|
* add scanner file for fennel parserTravonteD2020-09-021-1/+1
|
* health: add fold queries to check healthThomas Vigouroux2020-09-011-1/+1
|
* docs(fold): document and commentThomas Vigouroux2020-09-011-0/+4
|
* fix(fold): fix #350Thomas Vigouroux2020-09-011-4/+10
| | | | | | | | | Also correctly handle things like : if (foo) { } if (bar) { }
* fix(fold): revamp foldThomas Vigouroux2020-09-011-13/+45
| | | | | | | | fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
* use xmap in detachevakuator2020-09-011-1/+1
|
* use xmap instead of vmap in textobjectsevakuator2020-09-012-3/+3
|
* feat(refactor.navigation): allow a `fallback_function` for goto_definitionStephan Seitz2020-08-311-4/+10
| | | | | `fallback_function` is called when nvim-treesitter can not resolve the variable under the cursor.
* Fix(modules): simplify configs.setupStephan Seitz2020-08-311-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents a really weird bug were the following function call (after loading the activated modules) could activate `highlight_current_scope` ```lua require "nvim-treesitter.configs".setup( { highlight = { enable = false, -- false will disable the whole extension disable = {"html", "lua"} -- list of language that will be disabled }, refactor = { highlight_current_scope = { enable = false, inverse_highlighting = true, disable = {"python", "markdown"} }, highlight_definitions = { enable = true, disable = {"markdown"} }, }, ensure_installed = "all", disable = {"markdown"}, -- list of language that will be disabled } ) ```
* fix(highlight_current_scope): Ensure that detach is a inverse of attachStephan Seitz2020-08-311-2/+2
|
* Avoid enabling disabled modules (even if they were disabled immediately)Stephan Seitz2020-08-311-7/+8
| | | | | This might be safer for the case that attach/detach are not inverse to each other. Disabled modules shouldn't ever be activated.
* feat(refactor.navigation): add navigation.goto_{next,previous}_usageStephan Seitz2020-08-315-20/+53
|
* remove second checkOleg Matrokhin2020-08-301-2/+1
|
* fix get_package_path function for paths with trailing slashOleg Matrokhin2020-08-301-2/+2
|
* Add Windows support (mingw)Stephan Seitz2020-08-272-15/+20
|
* fix(health): only check installed parsersThomas Vigouroux2020-08-271-20/+7
| | | | | This is to avoid awfully long checkhealths. And not installed parsers can be infered from the fact that they are not listed.