mirror of
https://github.com/g-plane/wasm-language-tools.git
synced 2025-07-07 19:45:01 +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.
|
||||
- Neovim: Built-in support in [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#wasm_language_tools):
|
||||
```lua
|
||||
require("lspconfig").wasm_language_tools.setup({
|
||||
-- `settings` section is optional
|
||||
settings = { format = {}, lint = {} },
|
||||
})
|
||||
require("lspconfig").wasm_language_tools.setup({})
|
||||
```
|
||||
- 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`:
|
||||
```toml
|
||||
[language-server.wasm-language-tools]
|
||||
command = "wat_server" # or the absolute path to the binary
|
||||
args = []
|
||||
config = { format = {}, lint = { unused = "warn" } } # this section is optional
|
||||
command = "wat_server"
|
||||
|
||||
[[language]]
|
||||
name = "wat"
|
||||
language-servers = ["wasm-language-tools"]
|
||||
```
|
||||
|
||||
## 📚 Documentation
|
||||
|
||||
Please visit the [documentation website](https://wasm-language-tools.netlify.app/) for configuration and diagnostics explanation.
|
||||
|
||||
## 📜 License
|
||||
|
||||
MIT License
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue