Sean Baildon
2b785889a4
create TSTagAttribute highlight group ( #1575 )
...
references #1572
2021-07-14 14:33:36 +00:00
Santos Gallegos
647268183f
Highlights: define string.special ( #1551 )
...
* 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
2021-07-11 15:59:53 -05:00
antonk52
90f15d9bf7
feat(keywords) merge return and yield into keyword.return group
2021-07-04 21:49:17 +02:00
antonk52
bd9095e969
feat(keywords) add keyword.return & keyword.yield
2021-07-04 21:49:17 +02:00
kmarius
8adb2e0352
fix typo: Enviroment -> Environment
2021-06-22 07:27:00 +02:00
Santos Gallegos
054c2a5747
Link TSComment to Comment
...
Fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1246
2021-04-24 19:12:58 +02:00
Stephan Seitz
e1997ebbca
Add LaTeX maintainers
2021-03-30 19:26:37 +02:00
Stephan Seitz
712cc78a1e
Add text.reference and text.environment
2021-03-30 19:26:37 +02:00
Stephan Seitz
0556edf5f3
latex: add TSMath that behaves like vimtex math highlighting
2021-03-30 19:26:37 +02:00
Stephan Seitz
1375cc5c1f
fix(checkhealth): display error messages of failed queries
2021-03-23 21:25:37 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
Dennis B
aca33c0aca
[highlights] Add TSSymbol highlight group
...
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.
2021-03-04 06:19:40 +01:00
Santos Gallegos
b86555d9c3
HTML: improve highlights & injections
2021-02-11 07:42:19 +01:00
oberblastmeister
64ffea57f4
feat(query): add cache for get_query ( #879 )
...
* 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 >
2021-01-28 19:56:55 +01:00
delphinus
958252783e
Revert "Add lacked highlight link defined in highlight.lua"
...
This reverts commit 00f4f4d9856da0191c1d7f0d33f22b7cfcbb56c8.
2020-12-21 22:32:17 +01:00
delphinus
f74b14a7f9
Add lacked highlight link defined in highlight.lua
2020-12-21 22:32:17 +01:00
Stephan Seitz
3160a19de3
Fix #595 , #583 : do not set defaults for highlights that have no default highlighting
2020-10-19 23:03:16 +02:00
Akin Sowemimo
19c9465a8c
Explicitly check for cterm and gui values for fg
...
If a user hasn't set either we default to NONE
2020-10-11 19:26:37 +02:00
Akin Sowemimo
c817b62ae4
Add a check to ensure the fg attribute exists
...
before setting the value
2020-10-11 19:26:37 +02:00
Akin Sowemimo
1e43c0267f
Don't change the background highlights
...
treesitter highlighting is colouring the characters in the foreground so
there's no need to touch the highlighting of the background
2020-10-11 19:26:37 +02:00
Akin Sowemimo
d8a516cb39
fix cterm fg and bg error
2020-10-11 19:26:37 +02:00
Akin Sowemimo
c89367f283
Add background and foreground colors to TSNone
...
This fixes the issue where colors highlighted as TSNone were not
reverting to the background and foreground color.
2020-10-11 19:26:37 +02:00
Stephan Seitz
45397ebbd9
fix(highlights): Add TSNamespace highlight
...
Start adding highlights for
- C++
- Rust (including other scoped_identifier/scoped_type_identifier fixes)
- JS (only namespace_import)
Addresses #516
2020-10-10 15:31:51 +02:00
Stephan Seitz
93f9708a3c
Dart highlights: Reset highlight in interpolation
2020-10-05 06:37:31 +02:00
Steven Sojka
82a8b859c6
chore(modules): remove refactor module
2020-09-25 10:30:35 -05:00
Stephan Seitz
7e3c4f8089
Add @keyword.operator for operators that are English words and add @exception for Java/JS
2020-09-19 07:30:49 +02:00
Akin Sowemimo
3652bed53e
Re-add attribute highlight
2020-09-18 21:30:13 +02:00
kyazdani42
79fd22cc5a
use TSnone instead of linking to Normal
2020-09-18 17:55:55 +02:00
TravonteD
bc727653b9
link highlight groups for TSTag and TSTagDelimiter
2020-09-18 17:09:43 +02:00
kiyan42
71ba2afc70
add TSNone
2020-09-15 00:19:04 +02:00
Santos Gallegos
1a42056e09
Highlights: default TSError to Normal
...
This provides a better experience for users
without any extra config.
2020-09-06 16:12:02 +02:00
Santos Gallegos
930591b689
Highlights: use underlined for TSURI
...
Neovim already uses this hl group `:h group-name`
and it's recommend for links.
2020-09-06 12:34:32 +02:00
Santos Gallegos
1ba18329c7
Refactor: move completion functions to autoload
2020-09-04 21:20:30 +02:00
Steven Sojka
579c9936d6
feat(highlights): add is predicate
2020-08-16 09:04:07 -05:00
Thomas Vigouroux
1846d92ec6
fix(highlight): link TSVariable to Normal
2020-08-13 14:09:48 +02:00
Akin Sowemimo
1427c43cf0
Change capture groups and add variable highlights
2020-08-09 19:12:26 +02:00
Santos Gallegos
429036317a
Lua: highlight function name
2020-08-09 18:38:00 +02:00
Stephan Seitz
775ce30edd
Add 'all' to completions for TSInstall/TSUpdate/TSUninstall
2020-08-02 22:58:08 +02:00
Stephan Seitz
a872762d82
Add TSUpdate command to update parsers
2020-08-02 22:58:08 +02:00
Santos Gallegos
6f01384cb2
Parsers: add reStructuredText
2020-07-27 09:16:26 +02:00
Akin Sowemimo
599bec3890
Rename attribute to annotation
2020-07-23 17:17:03 +02:00
Akin Sowemimo
ee83c3bd02
Add attribute to the highlight map
2020-07-23 17:17:03 +02:00
Stephan Seitz
ee80e1ebc5
Add module refactor.highlight_current_scope
2020-07-13 22:26:17 +02:00
Stephan Seitz
817abb3688
Fix #136 : Highlight of TSFloat should be Float not TSFloat
2020-07-01 13:22:20 +02:00
Steven Sojka
d73500eaa6
refactor(refactor): use higher local apis and some cleanup
2020-06-30 08:21:01 +02:00
Thomas Vigouroux
f4b87d3364
highlights: declare links as defaults
2020-06-29 13:03:11 +02:00
Thomas Vigouroux
282e18edd1
highlight: use custom highlight groups
2020-06-26 20:56:19 +02:00
kiyan42
df17a48c85
refactor: parser list and lang->ft/ft->lang
...
- move parser list in `parsers.lua`
- most `ft` variable where changed to `lang`, `ft` is only used on
autocmd binding, and lang is used for everything else. Functions have
been defined to make the switch between `ft` and `lang`
2020-06-20 12:31:52 +02:00
Thomas Vigouroux
cadb3ee1ff
refactor(textobj): use configs and don't use VimL
2020-04-25 21:46:22 +02:00
Thomas Vigouroux
c62685841e
textobj: add incremental scope selection
2020-04-25 21:46:22 +02:00