summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter
AgeCommit message (Collapse)Author
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-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
2020-08-17some refacto, doc fixes and jsx querieskiyan42
- compute query language extensions *after* default ones (jsx after javascript) - remove outdated ts_utils functions from docs - add better regex detection to javascript - javascriptreact to use javascript queries - add javascript.jsx to javascript queries - write jsx.scm hl file
2020-08-17chore(textobjects): split up into submodulesStephan Seitz
2020-08-17Textobjects: set jump before going to adjacent_textobjectStephan Seitz
2020-08-17Textobject goto: treat end differently that startStephan Seitz
2020-08-17Textobjects: Allow nested textobjects on goto_adjacentStephan Seitz
2020-08-17chore(textobject): use query.find_best_match to find next/previous textobjectStephan Seitz
2020-08-17Textobjects: provide mappings for all swap/goto functionsStephan Seitz
2020-08-17Textobjects: Add goto_adjacentStephan Seitz
2020-08-17Textobjects: add swap featureStephan Seitz
2020-08-16Add fennel supportTravonteD
2020-08-16Merge pull request #296 from steelsojka/feat-is-predicateSteven Sojka
feat(highlights): add is predicate
2020-08-16Merge pull request #295 from steelsojka/feature/set-scopes-for-definitionsSteven Sojka
feat(defintions): allow setting of scope
2020-08-16feat(definitions): allow setting of scopeSteven Sojka