Commit graph

73 commits

Author SHA1 Message Date
HiPhish
a2072fef01 Release version 0.6.1 2024-08-11 12:59:38 +02:00
HiPhish
361193faea Release version 0.6.0 2024-08-07 23:24:10 +02:00
HiPhish
a74553b331 Add option to dynamically disable for a buffer
Based on a GitHub discussion[1], this option lets users specify a
predicate to dynamically enable or disable rainbow delimiters for a
buffer.

[1] https://github.com/HiPhish/rainbow-delimiters.nvim/discussions/130
2024-08-07 23:23:11 +02:00
HiPhish
a727bd368e Release version 0.5.0 2024-07-29 00:30:24 +02:00
HiPhish
e85bc80b44 Update documentation 2024-07-23 21:00:26 +02:00
HiPhish
073e45546a Add recipes to the manual 2024-06-10 01:07:38 +02:00
HiPhish
12b1a1e095 Release version 0.4.0 2024-05-07 09:39:48 +02:00
HiPhish
0563a31b1f Use query syntax for document tree in manual
The query syntax in the output format of `InspectTree` in the upcoming
Neovim 0.10, and we get syntax highlighting for free.
2024-04-06 00:28:45 +02:00
Micah Halter
35530b4ad4
Implement functions for checking if rainbow is enabled in buffer
Fix bug and add tests

Update changelog
2024-01-22 17:36:54 -05:00
Riley Bruins
e78b01a647 feat: query for only react tags in jsx,tsx 2023-12-23 10:58:33 -08:00
HiPhish
cc1783ca5f Allow arguments in configuration functions 2023-12-12 23:22:15 +01:00
HiPhish
cc5f3a0081 Evaluate config thunks in specific buffer context
Same as the previous commit, except for strategies and priorities.
2023-12-10 19:57:00 +01:00
HiPhish
6ee14cffa5 Adjust manual 2023-12-10 11:50:58 +01:00
Danielkonge
8fbbc14ee6 Update docs 2023-11-29 21:19:59 +01:00
HiPhish
47404636a3 Release version 0.2.0 2023-11-26 23:52:45 +01:00
HiPhish
fdd507455a Add highlight priority setting 2023-11-24 21:00:05 +01:00
Danielkonge
589917a99e Add more types for better LSP info
Co-authored-by: Alejandro Sanchez <hiphish@posteo.de>
2023-11-23 00:35:49 +01:00
Danielkonge
fd243cd0a2 Minor docs fixes 2023-11-16 00:42:45 +01:00
Danielkonge
4586784c02 Minor cleanup 2023-11-12 21:58:28 +01:00
HiPhish
a5e8fb4960 Remove large ASCII art header from manual
It was cool, but it does not work well with Tree-sitter.
2023-11-11 14:58:18 +01:00
HiPhish
ac045cafb5 Add file type to code listings in manual 2023-11-11 14:52:23 +01:00
HiPhish
a298d32172 Update documentation for new delimiter captures
Co-authored-by: Danielkonge <dakongsgaard@gmail.com>
2023-11-07 23:21:21 +01:00
HiPhish
b96f9d8539 Update documentation of setup function 2023-10-15 16:24:40 +02:00
HiPhish
6b9fc617ad Fix a tag in documentation 2023-09-26 15:41:55 +02:00
HiPhish
9cbd3dc409 Fix highlight when buffer changed outside editor
If the underlying file of a buffer has been changed outside Neovim we
have all sorts of stray extmarks lingering about.  This commit fixes the
issue by redoing the highlighting across the entire buffer.

- New strategy method: `on_reset`
- Normalize the format of syntactic change in strategy callback
- Document new method
2023-08-26 21:50:05 +02:00
HiPhish
adfb780b35 Implement functions for togging rainbow per buffer 2023-08-24 22:27:55 +02:00
HiPhish
7506a7d66b Improve logging
Makes the logging actually useful by specifying a proper log format,
documenting the settings and fixing bugs.
2023-07-22 16:52:37 +02:00
HiPhish
4aa076b065 Fix documentation of 'highlight' setting 2023-07-21 22:21:43 +02:00
HiPhish
6a8d5e2849 Update documentation 2023-07-16 14:25:24 +02:00
HiPhish
61a00e4f39 Fix strategy being able to be nil 2023-07-14 22:33:52 +02:00
HiPhish
862e0f5e86 Remove warning from manual
The manual has been updated for quite some time already.
2023-07-12 21:07:08 +02:00
HiPhish
cf9eae296d Merge branch 'mattyoung101/master' 2023-07-12 21:05:21 +02:00
HiPhish
b750a6bceb Clean up Verilog queries 2023-07-12 21:05:08 +02:00
HiPhish
3c6d618b1a Implement white- and blacklists for languages 2023-07-12 19:12:59 +02:00
Matt Young
db41a85a03 Move begin/end highlights to separate rainbow-blocks query
Also updated docs to reflect this change
2023-07-12 21:15:58 +10:00
HiPhish
239c6b2b01 Add a line of documentation 2023-07-09 23:42:39 +02:00
HiPhish
d8c53e5077 Add parentheses-only query for TSX 2023-07-09 23:36:44 +02:00
Aleksandar Sandic
abdd81497f Add rainbow-blocks query for Lua 2023-07-05 17:33:26 +02:00
HiPhish
23d8ed7efd Add setup function for those who really need it 2023-07-05 16:57:54 +02:00
HiPhish
792e247993 Fix documentation 2023-07-04 23:52:30 +02:00
HiPhish
18ed585131 Fix documentation
In Lua the name 'local' cannot be used as a field name, it has to be
quoted.
2023-07-02 23:57:24 +02:00
HiPhish
877f093202 Use tags as default delimiters in HTML and related 2023-07-02 18:26:50 +02:00
HiPhish
ed103c52b4 Rename default query to 'rainbow-delimiters' 2023-07-02 17:56:33 +02:00
HiPhish
6f7ed93aa0 Add Vim script bindings for library functions 2023-07-02 16:56:25 +02:00
HiPhish
e354e7ab47 Update documentation 2023-07-02 16:51:13 +02:00
HiPhish
e7603bf855 Rename files to 'rainbow-delimiters' 2023-06-29 23:37:02 +02:00
HiPhish
92076b9986 Transition to standalone plugin 2023-06-25 13:34:03 +02:00
HiPhish
a9937f8a90 Add "noop" strategy
Exposes the strategy publicly so users can use it in their
configuration.
2023-05-27 19:01:30 +02:00
HiPhish
b4391ba4eb Add strategy tracking wrapper
The old "dummy" strategy has been renamed to "no-op" because that is
what it does.  It lacks any logic or state.  Instead the task of keeping
track of attached buffers has been delegated to a decorator function
which can wrap any strategy.
2023-05-27 18:36:05 +02:00
HiPhish
6542cefc97 Add query rainbow-tags for Vue 2023-04-07 01:57:11 +02:00