summaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)Author
2020-09-15add TSNonekiyan42
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.
2020-09-12TextObjects: refactor wrong func namesSantos Gallegos
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
2020-09-11Yield meaningful error messages in iter_cmd{,_sync} when cmd.err == nilStephan Seitz
2020-09-11Allow to call setup on already loaded modules.Santos Gallegos
2020-09-10Improve startuptimeSantos Gallegos
- Don't load everything at startup - Don't define an autocomand for each module and for each supported lang (this creates nxm autocomand!)
2020-09-10Find package path based on the Lua source fileMarkus Koller
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`.
2020-09-10Ocaml: fix parserSantos Gallegos
Paths were changed https://github.com/tree-sitter/tree-sitter-ocaml/pull/41
2020-09-08Fix #418: iterator function should always return an iteratorStephan Seitz
Even if it's an empty iterator.
2020-09-08feat(parsers): add filetype PKGBUILDStephan Seitz
2020-09-08Import treesitter.install only when neededSantos Gallegos
2020-09-08Improve startup performanceSantos Gallegos
2020-09-08Queries: merge query_extensions into base_language_mapSantos Gallegos
These two are doing the same currently.
2020-09-07fix using highlight query extension for every query typekyazdani42
2020-09-07Incremental selection: fix skipping some nodesSantos Gallegos
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
2020-09-07Fold: respect max_fold_level from 'foldnestmax'Santos Gallegos
2020-09-06Text objects: check for query files firstSantos Gallegos
The first function is faster and more common.
2020-09-06Fixed table insertionRasmus Michelsen
2020-09-06Fixed win32 check hopefullyRasmus Michelsen
2020-09-06Added changesRasmus Michelsen
2020-09-06A few fixesRasmus Michelsen
2020-09-06Local variable fixRasmus Michelsen
2020-09-06Support TSInstall on Winddows with ClangRasmus Michelsen
2020-09-05Completion: use custom instead of customlistSantos Gallegos
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/396
2020-09-05fix ts_available_modules should be using nvim_treesitter#available_moduleskiyan42
2020-09-04Refactor: move completion functions to autoloadSantos Gallegos
2020-09-03preds: declare set! predicateThomas Vigouroux
2020-09-03Add warning about required Neovim versionStephan Seitz
2020-09-02add scanner file for fennel parserTravonteD
2020-09-01health: add fold queries to check healthThomas Vigouroux
2020-09-01docs(fold): document and commentThomas Vigouroux
2020-09-01fix(fold): fix #350Thomas Vigouroux
Also correctly handle things like : if (foo) { } if (bar) { }
2020-09-01fix(fold): revamp foldThomas Vigouroux
fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
2020-09-01use xmap in detachevakuator
2020-09-01use xmap instead of vmap in textobjectsevakuator
2020-08-31feat(refactor.navigation): allow a `fallback_function` for goto_definitionStephan Seitz
`fallback_function` is called when nvim-treesitter can not resolve the variable under the cursor.
2020-08-31Fix(modules): simplify configs.setupStephan Seitz
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 } ) ```
2020-08-31fix(highlight_current_scope): Ensure that detach is a inverse of attachStephan Seitz
2020-08-31Avoid enabling disabled modules (even if they were disabled immediately)Stephan Seitz
This might be safer for the case that attach/detach are not inverse to each other. Disabled modules shouldn't ever be activated.
2020-08-31feat(refactor.navigation): add navigation.goto_{next,previous}_usageStephan Seitz
2020-08-30remove second checkOleg Matrokhin
2020-08-30fix get_package_path function for paths with trailing slashOleg Matrokhin
2020-08-27Add Windows support (mingw)Stephan Seitz
2020-08-27fix(health): only check installed parsersThomas Vigouroux
This is to avoid awfully long checkhealths. And not installed parsers can be infered from the fact that they are not listed.
2020-08-25Fix #292: Add parser links to README.mdStephan Seitz
2020-08-25fix(locals): add nil guard for definition id creationSteven Sojka
2020-08-22Merge pull request #330 from steelsojka/fix-do-not-reattachSteven Sojka
fix(modules): do not reattach if already attached
2020-08-22fix(modules): do not reattach if already attachedSteven Sojka
2020-08-21fix(smart_rename): fix usages callSteven Sojka
2020-08-17Merge pull request #305 from theHamsta/textobjects-submodulesSteven Sojka
Textobjects submodules