Skip to content

Commit b6dc621

Browse files
committed
docs: add example config for kate
1 parent 631f58c commit b6dc621

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

docs/src/language-server/existing-clients.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Editors with ready-configured clients, maintained by the community.
44

55
- [Neovim](./neovim.md)
6+
- [Kate](./kate.md)

docs/src/language-server/kate.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Kate
2+
3+
The [Kate editor](https://kate-editor.org) has an LSP client where you can
4+
[configure your own servers](https://docs.kde.org/stable5/en/kate/kate/kate-application-plugin-lspclient.html).
5+
6+
This is an example configuration. To apply it:
7+
8+
- Open the Settings dialog
9+
- Go to the LSP Client category
10+
- Pick the User Server Settings tab
11+
12+
```json
13+
{
14+
"servers": {
15+
"bash": {
16+
"command": ["some-sass-language-server", "--stdio", "--debug"],
17+
"url": "https://github.com/wkillerud/some-sass/packages/language-server",
18+
"highlightingModeRegex": "^SCSS$"
19+
}
20+
}
21+
}
22+
```
23+
24+
Note that this assumes that both `node` and `some-sass-language-server` is available on your `PATH`.
25+
26+
For macOS users: GUI apps don't inherit the same `PATH` as your terminal.
27+
Configuring GUI apps to get the proper `PATH` varies with OS version. A consistent
28+
approach is launching the app from the terminal, for instance for Kate run
29+
`/Applications/kate.app/Contents/MacOS/kate`.

0 commit comments

Comments
 (0)