diff options
| author | AriaN <arianrezazadehs3@gmail.com> | 2023-10-26 15:46:52 +0330 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-26 20:16:52 +0800 |
| commit | bd1b4dcbdf040f3347d2e98c964709009f774709 (patch) | |
| tree | 15b811d1e240e738f18c9c421de7ee674868266b /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar.gz nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar.bz2 nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar.lz nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar.xz nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.tar.zst nvim-lspconfig-bd1b4dcbdf040f3347d2e98c964709009f774709.zip | |
docs: update deprecated arduino-language-server docs (#2875)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/arduino_language_server.lua | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lua/lspconfig/server_configurations/arduino_language_server.lua b/lua/lspconfig/server_configurations/arduino_language_server.lua index 1f529a74..f1d73e2b 100644 --- a/lua/lspconfig/server_configurations/arduino_language_server.lua +++ b/lua/lspconfig/server_configurations/arduino_language_server.lua @@ -46,7 +46,7 @@ $ arduino-cli sketch new test $ cd test ``` -You will need a `sketch.json` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file like using the following commands. +You will need a `sketch.yaml` file in order for the language server to understand your project. It will also save you passing options to `arduino-cli` each time you compile or upload a file. You can generate the file like using the following commands. First gather some information about your board. Make sure your board is connected and run the following: @@ -60,19 +60,14 @@ Port Protocol Type Board Name FQBN Core Then generate the file: ```sh -arduino-cli board attach -p /dev/ttyACM0 test.ino +arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino ``` The resulting file should like like this: -```json -{ - "cpu": { - "fqbn": "arduino:avr:uno", - "name": "Arduino Uno", - "port": "serial:///dev/ttyACM0" - } -} +```yaml +default_fqbn: arduino:avr:uno +default_port: /dev/ttyACM0 ``` Your folder structure should look like this: @@ -80,7 +75,7 @@ Your folder structure should look like this: ``` . ├── test.ino -└── sketch.json +└── sketch.yaml ``` For further instruction about configuration options, run `arduino-language-server --help`. |
