mirror of
https://github.com/g-plane/wasm-language-tools.git
synced 2025-08-04 08:38:16 +00:00
This commit is contained in:
parent
22c52d108e
commit
3a2b38f788
1 changed files with 6 additions and 7 deletions
13
README.md
13
README.md
|
@ -166,24 +166,23 @@ cargo install wat_server
|
||||||
- Visual Studio Code: Install the [WebAssembly Language Tools](https://marketplace.visualstudio.com/items?itemName=gplane.wasm-language-tools) extension.
|
- Visual Studio Code: Install the [WebAssembly Language Tools](https://marketplace.visualstudio.com/items?itemName=gplane.wasm-language-tools) extension.
|
||||||
- Neovim: Built-in support in [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#wasm_language_tools):
|
- Neovim: Built-in support in [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#wasm_language_tools):
|
||||||
```lua
|
```lua
|
||||||
require("lspconfig").wasm_language_tools.setup({
|
require("lspconfig").wasm_language_tools.setup({})
|
||||||
-- `settings` section is optional
|
|
||||||
settings = { format = {}, lint = {} },
|
|
||||||
})
|
|
||||||
```
|
```
|
||||||
- Zed: Install the [WebAssembly Text Format](https://zed.dev/extensions?query=WebAssembly+Text+Format) extension.
|
- Zed: Install the [WebAssembly Text Format](https://zed.dev/extensions?query=WebAssembly+Text+Format) extension.
|
||||||
- Helix: Add the following lines to `<config_dir>/helix/languages.toml`:
|
- Helix: Add the following lines to `<config_dir>/helix/languages.toml`:
|
||||||
```toml
|
```toml
|
||||||
[language-server.wasm-language-tools]
|
[language-server.wasm-language-tools]
|
||||||
command = "wat_server" # or the absolute path to the binary
|
command = "wat_server"
|
||||||
args = []
|
|
||||||
config = { format = {}, lint = { unused = "warn" } } # this section is optional
|
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "wat"
|
name = "wat"
|
||||||
language-servers = ["wasm-language-tools"]
|
language-servers = ["wasm-language-tools"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 📚 Documentation
|
||||||
|
|
||||||
|
Please visit the [documentation website](https://wasm-language-tools.netlify.app/) for configuration and diagnostics explanation.
|
||||||
|
|
||||||
## 📜 License
|
## 📜 License
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue