aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* feat(json): add support for jsonc filesChristian Clason2025-12-061-0/+1
|
* fix(filetypes): correct glimmer_* mappings (#8110)altermo2025-09-101-2/+2
|
* fix(ini): register dosini and confini filetypesIgor2025-07-261-0/+1
|
* feat(verilog)!: rename to systemverilogChristian Clason2025-06-241-1/+1
| | | | Grammar name was changed to coincide with repository name
* fix: register `powershell` language for `ps1` filetype (#7965)Luis Calle2025-06-231-1/+2
| | | | | * chore: sort languages * fix: register `powershell` language for `ps1` filetype
* fix(install): don't print operation summary by defaultChristian Clason2025-05-291-3/+4
| | | | | | | Problem: People complain about noisy `install()`. Solution: Gate operation summary behind `summary` install option (default false, set to true for interactive `:TS*` commands).
* feat(api): expose list of available and installed languagesChristian Clason2025-05-291-1/+1
|
* fix(config): check both installed parsers and queriesChristian Clason2025-05-291-1/+1
| | | | | | | | | Problem: Can't uninstall custom parsers without queries since `installed_parsers` only iterates over installed queries (to include query-only languages, and to avoid string manipulation). Solution: Iterate over both queries and parsers to collect list of installed languages (optionally only queries or only parsers).
* refactor(lua): fix some luals warningsChristian Clason2025-05-121-8/+8
|
* feat(html): use gsub for mimetype lookupChristian Clason2025-05-122-28/+1
|
* feat!: use tree-sitter buildChristian Clason2025-05-121-1/+1
|
* feat!: track parser revision in LuaChristian Clason2025-05-121-1/+1
| | | | | | | | | | | Problem: Tracking parser revision in lockfile and allowing override through the parsers module complicates the code. In addition, only revision changes are handled robustly, not changes to other installation info. Solution: Track parser revision in the parsers module directly. Reload parser table on every install or update call. Support modifying parser table in a `User TSUpdate` autocommand.
* feat(install)!: generate from json instead of requiring nodeChristian Clason2025-05-121-1/+1
| | | | | | | | | | | | Problem: Many parsers require node/npm to evaluate the `grammar.js` before being able to generate a parser from it. Solution: Generate from `grammar.json` instead, which is fully resolved. Drops `node` and `npm` as (optional) requirements for nvim-treesitter. Note that this requires parsers to commit the generated json iff the grammar requires evaluation (which is currently the case for all tracked languages).
* fix: do not use vim.iter (#6469)Lewis Russell2025-05-121-6/+14
|
* fix: update add_predicate and add_directive calls for upstream (#6106)Gregory Anders2025-05-121-14/+35
| | | | | Update custom predicates and directives to handle multiple nodes per capture ID per changes upstream.
* fix: remove upstreamed directivesChristian Clason2025-05-121-98/+4
| | | | `#inject-lang!` and `#trim!`; fix `set-lang-from-mimetype`
* feat: drop `TSInstallInfo` in favor of better `checkhealth`Christian Clason2025-05-121-4/+0
| | | | also fixes the hole in install.compilers
* ci: remove update-lockfile shell scriptChristian Clason2025-05-121-6/+6
|
* refactor: rewrite installation using jobs and asyncLewis Russell2025-05-121-22/+6
| | | | Replace sync variants with callback support
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-123-25/+284
|
* feat!: remove obsolete `TS*` highlight groupsChristian Clason2022-10-161-10/+0
|
* feat(highlight): re-apply default highlights on colorscheme changesJohn Drouhard2022-07-301-85/+8
| | | | | | | | | | | | | | | | | | If the plugin is loaded after a colorscheme is set that defines any of these highlight groups, the default won't be applied. Subsequent "highlight clear" commands (common when switching colorschemes) will then clear any of those highlights, but these defaults never have another opportunity to be initialized. Effectively, if you load neovim with a colorscheme that has definitions for some of these highlight groups, then load treesitter, then switch colorschemes, many of these default links will be absent resulting in colors that do not appear the same as if that colorscheme had been used at startup. Hooking the ColorScheme event with an autocmd that just reapplies these defaults gives every colorscheme switch the opportunity to get the defaults for non-explicitly-defined groups.
* refactor!: update to Neovim 0.7 APIsChristian Clason2022-04-302-106/+121
| | | | | | | * set highlight groups via nvim_set_hl * define autocommands via nvim_create_autocmd * port plugin/nvim-treesitter.vim to Lua * port healthcheck to Lua
* Add capture groups for remaining builtin highlight groupsGregory Anders2022-03-301-0/+10
| | | | | Some builtin highlight groups (see `:h group-name`) do not yet have associated capture groups, so add them.
* create TSTagAttribute highlight group (#1575)Sean Baildon2021-07-141-0/+1
| | | references #1572
* Highlights: define string.special (#1551)Santos Gallegos2021-07-111-0/+1
| | | | | | | | | | * Highlights: define string.special This was in our CONTRIBUTING.md file, but wasn't defined. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405 * Use string.escape
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-1/+0
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-0/+2
|
* fix typo: Enviroment -> Environmentkmarius2021-06-221-2/+2
|
* Link TSComment to CommentSantos Gallegos2021-04-241-0/+1
| | | | Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1246
* Add LaTeX maintainersStephan Seitz2021-03-301-1/+1
|
* Add text.reference and text.environmentStephan Seitz2021-03-301-0/+3
|
* latex: add TSMath that behaves like vimtex math highlightingStephan Seitz2021-03-301-0/+1
|
* fix(checkhealth): display error messages of failed queriesStephan Seitz2021-03-231-1/+1
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+4
| | | Closes #236
* [highlights] Add TSSymbol highlight groupDennis B2021-03-041-0/+1
| | | | | | | | | | | | | | Addresses issue #892 Ruby and Dart literal symbols will now be highlighted by the new TSSymbol highlight group, which itself will, by default, link to the Vim Identifier highlight group. Vim theme authors can then set their TSSymbol colors. Symbol highlighting can apply to a number of languages as noted in the following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming) Not just for Ruby and Dart.
* HTML: improve highlights & injectionsSantos Gallegos2021-02-111-0/+1
|
* feat(query): add cache for get_query (#879)oberblastmeister2021-01-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added cached to get_query * added reload function * fixed message * added autocommand to reload cache on bufwrite for query file * pass filename to autocommand v:lua fn * removed comment * added metatable * fixed loop * Update lua/nvim-treesitter/query.lua Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com> * Update lua/nvim-treesitter/query.lua Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com> * added do ... end to local query_cache * made line shorter Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com>
* Revert "Add lacked highlight link defined in highlight.lua"delphinus2020-12-211-3/+0
| | | | This reverts commit 00f4f4d9856da0191c1d7f0d33f22b7cfcbb56c8.
* Add lacked highlight link defined in highlight.luadelphinus2020-12-211-0/+3
|
* Fix #595, #583: do not set defaults for highlights that have no default ↵Stephan Seitz2020-10-191-3/+0
| | | | highlighting
* Explicitly check for cterm and gui values for fgAkin Sowemimo2020-10-111-7/+8
| | | | If a user hasn't set either we default to NONE
* Add a check to ensure the fg attribute existsAkin Sowemimo2020-10-111-1/+11
| | | | before setting the value
* Don't change the background highlightsAkin Sowemimo2020-10-111-1/+1
| | | | | treesitter highlighting is colouring the characters in the foreground so there's no need to touch the highlighting of the background
* fix cterm fg and bg errorAkin Sowemimo2020-10-111-1/+1
|
* Add background and foreground colors to TSNoneAkin Sowemimo2020-10-111-1/+1
| | | | | This fixes the issue where colors highlighted as TSNone were not reverting to the background and foreground color.
* fix(highlights): Add TSNamespace highlightStephan Seitz2020-10-101-1/+1
| | | | | | | | | Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
* Dart highlights: Reset highlight in interpolationStephan Seitz2020-10-051-1/+1
|
* chore(modules): remove refactor moduleSteven Sojka2020-09-251-5/+0
|
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-0/+1
| | | | @exception for Java/JS