HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
490 stars 37 forks source link

[Bug]: Doesn't works with .tsx files #18

Closed t1gu1 closed 1 year ago

t1gu1 commented 1 year ago

Neovim version

0.9.1

Language affected

tsx

Query

No response

Strategy

No response

Description

const GodScreen: FC = () => {
  const test = {
    a: {
      b: {
        c: {
          d: {
            e: {
              f: {
                g: {
                  h: {},
                },
              },
            },
          },
        },
      },
    },
  };

  return <></>;
};

export default GodScreen;
t1gu1 commented 1 year ago

I test other files extensions. (Using the exact same code in the file)

It doesn't works also for

But it works fine if it's a .ts

schardev commented 1 year ago

Possibly duplicate of #14

HiPhish commented 1 year ago

Please try the current master branch.

But it works fine if it's a .ts

Yes, because the TypeScript grammar does not not include React support. The Javascript grammar does include React support, whether you need it or not.

t1gu1 commented 1 year ago

Works since the update! :D Thanks!