From dd782e9b9c3723101fcda8f86f94295b7fd7bb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B=20/=20Predrag=20Nikolic?= Date: Mon, 10 May 2021 22:21:02 +0200 Subject: [PATCH] remove workaround for feature selector and remove unneeded sentences (#3) LSP for ST4 now supports sending completion request to multiple sessions https://github.com/sublimelsp/LSP/pull/1582 --- README.md | 45 +++++---------------------------------------- 1 file changed, 5 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 4c92e13..f8c2f89 100644 --- a/README.md +++ b/README.md @@ -2,51 +2,16 @@ TailwindCSS support for Sublime's LSP. -Provided through [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss), which is open-source on GitHub as [Tailwind Labs](https://github.com/tailwindlabs/tailwindcss-intellisense). +Provided through [Tailwind CSS IntelliSense](https://github.com/tailwindlabs/tailwindcss-intellisense). -## Installation +### Installation -This plugin is not published on the official [Package Control](https://packagecontrol.io/).\ -We are making the latest adjustments and tests, so that everything works correctly. +* Install [LSP](https://packagecontrol.io/packages/LSP) and `LSP-tailwindcss` via Package Control. +* Restart Sublime. -**Package Control:** - -1. Add a custom repository for Package Control with steps described [here](https://github.com/jfcherng-sublime/ST-my-package-control/blob/master/README.md#usage). -2. Install [LSP](https://packagecontrol.io/packages/LSP) and `LSP-tailwindcss` via Package Control. -3. Restart Sublime. - -**Manually:** - -1. Download latest release and unzip. it into your Packages folder. -2. Go to `Sublime Text → Preferences → Browse Packages`. -3. Move folder to inside. (folder name should be LSP-tailwindcss) - -## Configuration +### Configuration There are some ways to configure the package and the language server. - From `Preferences > Package Settings > LSP > Servers > LSP-tailwindcss` - From the command palette `Preferences: LSP-tailwindcss Settings` - -## LSP-html + LSP-tailwindcss - -1. Go to [LSP-tailwindcss Settings](#configuration) -2. Paste the following settings: - -```diff - { - "languageId": "html", - // ST3 - "scopes": ["text.html.basic",], - "syntaxes": [ - "Packages/HTML/HTML.sublime-syntax", - "Packages/PHP/PHP.sublime-syntax", - ], - // ST4 - "document_selector": "text.html.basic | embedding.php | text.blade", -- "feature_selector": "text.html" -+ "feature_selector": "meta.attribute-with-value.class.html" - }, -``` -> NOTE: Change the `feature_selector`, it will allow you to use `LSP-html` normally, and you will only use `LSP-tailwindcss` when you write a class. -Since [TailwindCSS](https://tailwindcss.com/) just providing utility classes will work perfectly.