Skip to content

Commit 8840ea5

Browse files
feat: dts-lsp #3595
1 parent f98fa71 commit 8840ea5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: lua/lspconfig/configs/dts_lsp.lua

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
return {
2+
default_config = {
3+
name = 'dts_lsp',
4+
cmd = { 'dts-lsp' },
5+
filetypes = { 'dts', 'dtsi', 'overlay' },
6+
root_dir = function(fname)
7+
return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
8+
end,
9+
settings = {},
10+
},
11+
docs = {
12+
description = [[
13+
`dts-lsp` is an LSP for Devicetree files built on top of tree-sitter-devicetree grammar.
14+
Language servers can be used in many editors, such as Visual Studio Code, Emacs
15+
or Vim
16+
17+
Install `dts-lsp` from https://github.com/igor-prusov/dts-lsp and add it to path
18+
19+
`dts-lsp` doesn't require any configuration.
20+
21+
More about Devicetree:
22+
https://www.devicetree.org/
23+
https://docs.zephyrproject.org/latest/build/dts/index.html
24+
25+
]],
26+
},
27+
}

0 commit comments

Comments
 (0)