aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Re-add attribute highlightAkin Sowemimo2020-09-181-0/+1
|
* use TSnone instead of linking to Normalkyazdani422020-09-181-5/+5
|
* link highlight groups for TSTag and TSTagDelimiterTravonteD2020-09-181-0/+3
|
* add TSNonekiyan422020-09-151-0/+2
|
* Highlights: default TSError to NormalSantos Gallegos2020-09-061-1/+1
| | | | | This provides a better experience for users without any extra config.
* Highlights: use underlined for TSURISantos Gallegos2020-09-061-1/+1
| | | | | Neovim already uses this hl group `:h group-name` and it's recommend for links.
* Refactor: move completion functions to autoloadSantos Gallegos2020-09-041-12/+1
|
* feat(highlights): add is predicateSteven Sojka2020-08-161-0/+1
|
* fix(highlight): link TSVariable to NormalThomas Vigouroux2020-08-131-2/+2
|
* Change capture groups and add variable highlightsAkin Sowemimo2020-08-091-0/+3
|
* Lua: highlight function nameSantos Gallegos2020-08-091-0/+1
|
* Add 'all' to completions for TSInstall/TSUpdate/TSUninstallStephan Seitz2020-08-021-2/+2
|
* Add TSUpdate command to update parsersStephan Seitz2020-08-021-0/+3
|
* Parsers: add reStructuredTextSantos Gallegos2020-07-271-0/+8
|
* Rename attribute to annotationAkin Sowemimo2020-07-231-1/+1
|
* Add attribute to the highlight mapAkin Sowemimo2020-07-231-0/+1
|
* Add module refactor.highlight_current_scopeStephan Seitz2020-07-131-0/+1
|
* Fix #136: Highlight of TSFloat should be Float not TSFloatStephan Seitz2020-07-011-1/+1
|
* refactor(refactor): use higher local apis and some cleanupSteven Sojka2020-06-301-0/+3
|
* highlights: declare links as defaultsThomas Vigouroux2020-06-291-33/+33
|