Commit graph

33 commits

Author SHA1 Message Date
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
kiyan42
62786ec7c6 feat/refacto: improve configurations
- You should now get the configs through functions
- Configs for languages are now inside a local object called parsers
- You can get the parser installation configurations with `get_parser_configs`
- A new object has been initialized inside configs to specify module config (called config).
- Provide functions to enable/disable a module on one buffer
- Provide functions to enable/disable a module on all buffers, and if filetype is
  specified, for specific filetype
- Provide function to determine if module is activated for a specified filetype
2020-04-24 22:15:21 +02:00
kiyan42
62ce7744db feat/refacto: add configs.lua, setup install
- configs.lua holds the `repositories` data
- install health moved to health.lua
- plugins loads _root.setup() on startup
- install and list command are available through vim
> use them with `:TSInstall lang` and `:TSInstallInfo`
2020-04-21 23:40:23 +02:00
Thomas Vigouroux
6cab5c2d75 feat: create NvimTreesitter augroup at startup 2020-04-19 17:28:59 +02:00
Thomas Vigouroux
0d5ef2f980 fix: add plugin file 2020-04-19 17:28:52 +02:00