merrickluo / lsp-tailwindcss

the lsp-mode client for tailwindcss
GNU General Public License v3.0
188 stars 21 forks source link

refactor: avoid code repetition, ease extension addition #69

Open jeafleohj opened 4 months ago

jeafleohj commented 4 months ago

Astro uses the .mjs extension for TailwindCSS by default. I have added support for this and other extensions mentioned in the documentation (mts,cts). Additionally, I refactored the code to avoid repetition. The -reduce function from dash.el is already a dependency of lsp, so there should be no issues using it.