Skip to content

Commit

Permalink
feat: add example for LSP with tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
Dung Huynh Duc committed Jul 22, 2024
1 parent fe18aa2 commit c9a4ec6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Update your settings.json file with the following configuration:
<!-- ALL-SETTINGS:START -->

```json
// settings.json, generated at Wed Jul 17 2024 21:03:50 GMT+0800 (Singapore Standard Time)
// settings.json, generated at Mon Jul 22 2024 22:02:16 GMT+0800 (Singapore Standard Time)
// Zed settings
//
// For information on how to configure Zed, see the Zed
Expand Down Expand Up @@ -80,6 +80,14 @@ Update your settings.json file with the following configuration:
"inlay_hints": {
"enabled": true
},
// LSP
"lsp": {
"tailwindcss-language-server": {
"settings": {
"classAttributes": ["class", "className", "ngClass", "styles"]
}
}
},
"languages": {
// Refer https://zed.dev/docs/languages/javascript and https://zed.dev/docs/languages/typescript for more info
"TypeScript": {
Expand Down Expand Up @@ -121,6 +129,7 @@ Update your settings.json file with the following configuration:
"dock": "right"
}
}

```

<!-- ALL-SETTINGS:END -->
Expand All @@ -136,7 +145,7 @@ Update your keymap.json file with the following key bindings:
<!-- ALL-KEYMAPS:START -->

```json
// keymap.json, generated at Wed Jul 17 2024 21:03:50 GMT+0800 (Singapore Standard Time)
// keymap.json, generated at Mon Jul 22 2024 22:02:16 GMT+0800 (Singapore Standard Time)
[
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
Expand Down Expand Up @@ -180,6 +189,7 @@ Update your keymap.json file with the following key bindings:

// +LSP
"space c a": "editor::ToggleCodeActions",
"space .": "editor::ToggleCodeActions",
"space c r": "editor::Rename",
"g d": "editor::GoToDefinition",
"g D": "editor::GoToDefinitionSplit",
Expand Down Expand Up @@ -320,6 +330,7 @@ Update your keymap.json file with the following key bindings:
// }
// }
]

```

<!-- ALL-KEYMAPS:END -->
Expand Down
1 change: 1 addition & 0 deletions keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

// +LSP
"space c a": "editor::ToggleCodeActions",
"space .": "editor::ToggleCodeActions",
"space c r": "editor::Rename",
"g d": "editor::GoToDefinition",
"g D": "editor::GoToDefinitionSplit",
Expand Down
8 changes: 8 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
"inlay_hints": {
"enabled": true
},
// LSP
"lsp": {
"tailwindcss-language-server": {
"settings": {
"classAttributes": ["class", "className", "ngClass", "styles"]
}
}
},
"languages": {
// Refer https://zed.dev/docs/languages/javascript and https://zed.dev/docs/languages/typescript for more info
"TypeScript": {
Expand Down

0 comments on commit c9a4ec6

Please sign in to comment.