Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
add jsx tags to extended mode
Browse files Browse the repository at this point in the history
Resolves #118
  • Loading branch information
p00f committed Jul 8, 2022
1 parent 837167f commit 85ff020
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rainbow/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 21,7 @@ local api = vim.api

local add_predicate = vim.treesitter.query.add_predicate
local nsid = vim.api.nvim_create_namespace("rainbow_ns")
local extended_languages = { "latex", "html", "verilog" }
local extended_languages = { "latex", "html", "verilog", "jsx" }
local colors = configs.get_module("rainbow").colors
local termcolors = configs.get_module("rainbow").termcolors

Expand Down
6 changes: 6 additions & 0 deletions queries/jsx/parens.scm
Original file line number Diff line number Diff line change
@@ -1 1,7 @@
; inherits: square,round,curly

[(jsx_opening_element)
(jsx-extended-rainbow-mode?)] @paren

[(jsx_closing_element)
(jsx-extended-rainbow-mode?)] @paren

0 comments on commit 85ff020

Please sign in to comment.