piersolenski / telescope-import.nvim

Import modules with ease
186 stars 8 forks source link

add javascriptreact filetype, remove invalid react filetype #6

Closed Drew-Daniels closed 10 months ago

Drew-Daniels commented 10 months ago

Issue

I am getting an error message when running :Telescope import while viewing a javascriptreact filetype file:

image

Cause

There is no javascriptreact filetype support.

Solution

This adds support for javascriptreact filetype files, and removes the invalid react filetype.

Output from :set filetype? in a .jsx buffer:

image

piersolenski commented 10 months ago

I've refactored things a bit so the PR won't work but I've included your change, thanks for this PR! 🙏