Format docs with Prettier (#8134)
This PR formats the docs with Prettier. Release Notes: - N/A
This commit is contained in:
parent
9fcda5a5ac
commit
3220986fc9
8 changed files with 22 additions and 14 deletions
|
@ -307,6 +307,7 @@ To override settings for a language, add an entry for that language server's nam
|
||||||
```
|
```
|
||||||
|
|
||||||
## Auto close
|
## Auto close
|
||||||
|
|
||||||
- Description: Whether or not to automatically type closing characters for you.
|
- Description: Whether or not to automatically type closing characters for you.
|
||||||
- Setting: `use_autoclose`
|
- Setting: `use_autoclose`
|
||||||
- Default: `true`
|
- Default: `true`
|
||||||
|
|
|
@ -8,7 +8,6 @@ A selection of base keymaps is available in the welcome screen under the "Choose
|
||||||
|
|
||||||
Additionally, you can change the base keymap from the command palette - `⌘-Shift-P` - by selecting the "welcome: toggle base keymap selector" command.
|
Additionally, you can change the base keymap from the command palette - `⌘-Shift-P` - by selecting the "welcome: toggle base keymap selector" command.
|
||||||
|
|
||||||
|
|
||||||
## Custom key bindings
|
## Custom key bindings
|
||||||
|
|
||||||
### Accessing custom key bindings
|
### Accessing custom key bindings
|
||||||
|
@ -39,11 +38,13 @@ You can see more examples in Zed's [`default.json`](https://zed.dev/ref/default.
|
||||||
_There are some key bindings that can't be overridden; we are working on an issue surrounding this._
|
_There are some key bindings that can't be overridden; we are working on an issue surrounding this._
|
||||||
|
|
||||||
## Special Keyboard Layouts
|
## Special Keyboard Layouts
|
||||||
|
|
||||||
Some people have unique and custom keyboard layouts.
|
Some people have unique and custom keyboard layouts.
|
||||||
|
|
||||||
For example, [@TomPlanche](https://github.com/TomPlanche) having a [French keyboard](https%3A%2F%2Fcdn.shopify.com%2Fs%2Ffiles%2F1%2F0810%2F3669%2Ffiles%2Ffrench-azerty-mac-keyboard-layout-2021-keyshorts.png&f=1&nofb=1&ipt=f53a06c5e60a20b621082410aa699c8cceff269a11ff90b3b5a35c6124dbf827&ipo=images), had to type `Shift-Alt-(` in order to have a simple `[` so he made a simple layout with those 'rules':
|
For example, [@TomPlanche](https://github.com/TomPlanche) having a [French keyboard](https%3A%2F%2Fcdn.shopify.com%2Fs%2Ffiles%2F1%2F0810%2F3669%2Ffiles%2Ffrench-azerty-mac-keyboard-layout-2021-keyshorts.png&f=1&nofb=1&ipt=f53a06c5e60a20b621082410aa699c8cceff269a11ff90b3b5a35c6124dbf827&ipo=images), had to type `Shift-Alt-(` in order to have a simple `[` so he made a simple layout with those 'rules':
|
||||||
`ù -> [`, `backtick -> ]`, `Alt-[ (where [ is the old ù) -> {`, `Alt-] -> }`.
|
`ù -> [`, `backtick -> ]`, `Alt-[ (where [ is the old ù) -> {`, `Alt-] -> }`.
|
||||||
But, it was impossible to take into account the `{` and `}` when he was typing so now, in order to ignore a binding, he can add `null` to the binding:
|
But, it was impossible to take into account the `{` and `}` when he was typing so now, in order to ignore a binding, he can add `null` to the binding:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -56,7 +57,6 @@ But, it was impossible to take into account the `{` and `}` when he was typing s
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## All key bindings
|
## All key bindings
|
||||||
|
|
||||||
### Global
|
### Global
|
||||||
|
|
|
@ -26,7 +26,6 @@ git submodule update --init --recursive
|
||||||
|
|
||||||
- If you prefer to install the system libraries manually, you can find the list of required packages in the `script/linux` file.
|
- If you prefer to install the system libraries manually, you can find the list of required packages in the `script/linux` file.
|
||||||
|
|
||||||
|
|
||||||
## Backend Dependencies
|
## Backend Dependencies
|
||||||
|
|
||||||
# Note: This section is still in development. The instructions are not yet complete.
|
# Note: This section is still in development. The instructions are not yet complete.
|
||||||
|
|
|
@ -22,6 +22,7 @@ Zed sets the following initialization options for inlay hints:
|
||||||
to make the language server send back inlay hints when Zed has them enabled in the settings.
|
to make the language server send back inlay hints when Zed has them enabled in the settings.
|
||||||
|
|
||||||
Use
|
Use
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"$LANGUAGE_SERVER_NAME": {
|
"$LANGUAGE_SERVER_NAME": {
|
||||||
|
@ -33,6 +34,7 @@ Use
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
to override these settings.
|
to override these settings.
|
||||||
|
|
||||||
See https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md for more information.
|
See https://github.com/golang/tools/blob/master/gopls/doc/inlayHints.md for more information.
|
||||||
|
@ -49,5 +51,5 @@ TODO: https://github.com/zed-industries/zed/pull/7139
|
||||||
# Go Work
|
# Go Work
|
||||||
|
|
||||||
- Tree Sitter:
|
- Tree Sitter:
|
||||||
[tree-sitter-go-work](https://github.com/d1y/tree-sitter-go-work)
|
[tree-sitter-go-work](https://github.com/d1y/tree-sitter-go-work)
|
||||||
- Language Server: N/A
|
- Language Server: N/A
|
||||||
|
|
|
@ -4,14 +4,17 @@
|
||||||
- Language Server: [ocamllsp](https://github.com/ocaml/ocaml-lsp)
|
- Language Server: [ocamllsp](https://github.com/ocaml/ocaml-lsp)
|
||||||
|
|
||||||
## Setup Instructions
|
## Setup Instructions
|
||||||
|
|
||||||
If you have the development environment already setup, you can skip to [Launching Zed](#launching-zed)
|
If you have the development environment already setup, you can skip to [Launching Zed](#launching-zed)
|
||||||
|
|
||||||
### Using OPAM
|
### Using OPAM
|
||||||
|
|
||||||
Opam is the official package manager for OCaml and is highly recommended for getting started with OCaml. To get started using Opam, please follow the instructions provided [here](https://ocaml.org/install).
|
Opam is the official package manager for OCaml and is highly recommended for getting started with OCaml. To get started using Opam, please follow the instructions provided [here](https://ocaml.org/install).
|
||||||
|
|
||||||
Once you install opam and setup a switch with your development environment as per the instructions, you can proceed.
|
Once you install opam and setup a switch with your development environment as per the instructions, you can proceed.
|
||||||
|
|
||||||
### Launching Zed
|
### Launching Zed
|
||||||
|
|
||||||
By now you should have `ocamllsp` installed, you can verify so by running
|
By now you should have `ocamllsp` installed, you can verify so by running
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -51,6 +51,7 @@ Use
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
to override these settings.
|
to override these settings.
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ Zed sets the following initialization options for inlay hints:
|
||||||
to make the language server send back inlay hints when Zed has them enabled in the settings.
|
to make the language server send back inlay hints when Zed has them enabled in the settings.
|
||||||
|
|
||||||
Use
|
Use
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"$LANGUAGE_SERVER_NAME": {
|
"$LANGUAGE_SERVER_NAME": {
|
||||||
|
@ -34,6 +35,7 @@ Use
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
to override these settings.
|
to override these settings.
|
||||||
|
|
||||||
See https://github.com/typescript-language-server/typescript-language-server?tab=readme-ov-file#inlay-hints-textdocumentinlayhint for more information.
|
See https://github.com/typescript-language-server/typescript-language-server?tab=readme-ov-file#inlay-hints-textdocumentinlayhint for more information.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue