Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow finer-grained control of insertText #231

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/src/language-server/configure-a-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,34 @@ For example:
}
```

### Language-specific configuration

For the completion settings above you can tweak them per supported language.

The setting without a specified syntax applies to all of them.
If both are specified, the one for the individual syntax takes precedence.

```json
{
"settings": {
"somesass": {
"completion": {
"afterModule": "{module}",
},
"vue": {
"completion": {
"afterModule": "{module}."
}
}
}
}
}
```

In the example above, `somesass.completion.afterModule` with the value `{module}` applies to all languages except Vue, which uses `{module}.`.



## Existing clients

This list of [language client implementations][languageclients] may be a helpful starting point. You may also want to look at [existing clients](./existing-clients.md).
Expand Down
1 change: 0 additions & 1 deletion docs/src/language-server/existing-clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ these are editors with ready-configured clients, maintained by the community.
<!-- Sort alphabetically. Add new pages to SUMMARY.md as well. -->
- [Helix](./helix.md)
- [Neovim](./neovim.md)

Loading