An LSP for DTS files built on top of tree-sitter-devicetree grammar.
- Go to label definition
- Find references to label
- Handle editor buffer changes
- Rename labels/references
cargo install dts-lsp
vim.api.nvim_create_autocmd('FileType', {
pattern = "dts",
callback = function (ev)
vim.lsp.start({
name = 'dts-lsp',
cmd = {'dts-lsp'},
root_dir = vim.fs.dirname(vim.fs.find({'.git'}, { upward = true })[1]),
})
end
})