devicetree-language-server 0.6.8 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -18
- package/dist/THIRD_PARTY_LICENSES.txt +1 -1
- package/dist/server.js +141 -135
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# DTS Language Server
|
|
4
4
|
|
|
@@ -23,14 +23,13 @@ This LSP is intended to be used with DTS Devicetree Specification Release v0.4 (
|
|
|
23
23
|
- [Usage](#usage)
|
|
24
24
|
- [Zephyr](#zephyr-configuration-example)
|
|
25
25
|
- [Linux](#linux)
|
|
26
|
-
|
|
26
|
+
- [Devicetree-Org](#with-devicetree-org-bindings)
|
|
27
27
|
- [Sample Editor configurations](#sample-editor-configurations)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
- [kakoune](#kakoune)
|
|
29
|
+
- [Neovim - lazygit](#neovim---lazygit)
|
|
30
|
+
- [Helix](#helix)
|
|
31
|
+
- [coc.nvim](#coco-nvim)
|
|
32
|
+
- [Vim 9 - yegappan lsp](#vim-9---yegappan-lsp)
|
|
34
33
|
|
|
35
34
|
## Features
|
|
36
35
|
|
|
@@ -79,7 +78,7 @@ On hover over the node name, a tooltip will show the final state of that node. I
|
|
|
79
78
|
|
|
80
79
|

|
|
81
80
|
|
|
82
|
-
When hovering over a
|
|
81
|
+
When hovering over a deleted state you can see the state of the item just before the delete action.
|
|
83
82
|
|
|
84
83
|

|
|
85
84
|
|
|
@@ -173,19 +172,19 @@ Completions are context aware of the document state on the line the action is re
|
|
|
173
172
|
|
|
174
173
|
#### Label reference completion reference node creation and property assignment
|
|
175
174
|
|
|
176
|
-

|
|
177
176
|
|
|
178
177
|
#### Delete Node:
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
Suggests appropriate type e.g. by reference or node name.
|
|
180
|
+
Does not suggest keyword if no delete is possible.
|
|
182
181
|
|
|
183
182
|

|
|
184
183
|
|
|
185
184
|
#### Delete Property:
|
|
186
185
|
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
Suggests property names available in that context.
|
|
187
|
+
Does not suggest keyword if no delete is possible.
|
|
189
188
|
|
|
190
189
|

|
|
191
190
|
|
|
@@ -222,13 +221,12 @@ Given that in some cases the files included in a devicetree might come from an S
|
|
|
222
221
|
|
|
223
222
|
Contributions are welcome or reach out on GitHub with requests.
|
|
224
223
|
|
|
225
|
-
|
|
226
224
|
## Installation
|
|
227
225
|
|
|
228
226
|
The language server can be found on https://www.npmjs.com/package/devicetree-language-server.
|
|
229
227
|
|
|
230
228
|
To install run
|
|
231
|
-
`npm i devicetree-language-server`
|
|
229
|
+
`npm i -g devicetree-language-server`
|
|
232
230
|
|
|
233
231
|
The LSP has only been tested with Node 20.
|
|
234
232
|
|
|
@@ -462,7 +460,6 @@ return {
|
|
|
462
460
|
}
|
|
463
461
|
```
|
|
464
462
|
|
|
465
|
-
|
|
466
463
|
#### Helix
|
|
467
464
|
|
|
468
465
|
Contribution by [bextract](https://github.com/bextract)
|
|
@@ -669,4 +666,4 @@ nnoremap <silent> gdc :LspGotoDeclaration<CR>
|
|
|
669
666
|
|
|
670
667
|
command! -nargs=0 -bar -range=% Format <line1>,<line2>LspFormat
|
|
671
668
|
set formatexpr=lsp#lsp#FormatExpr() " Map LspFormat to the gq command
|
|
672
|
-
```
|
|
669
|
+
```
|
|
@@ -101,7 +101,7 @@ Repository: https://github.com/moxystudio/node-cross-spawn
|
|
|
101
101
|
|
|
102
102
|
----------------------------------------------------------------------
|
|
103
103
|
|
|
104
|
-
devicetree-language-server@0.
|
|
104
|
+
devicetree-language-server@0.7.1
|
|
105
105
|
License: Apache-2.0
|
|
106
106
|
Repository: https://github.com/kylebonnici/dts-lsp
|
|
107
107
|
|