Crates.io | dts-lsp |
lib.rs | dts-lsp |
version | 0.1.5 |
source | src |
created_at | 2024-05-27 20:22:45.560082 |
updated_at | 2024-09-24 22:52:54.774027 |
description | Language Server for Device Tree Source files |
homepage | https://github.com/igor-prusov/dts-lsp |
repository | https://github.com/igor-prusov/dts-lsp |
max_upload_size | |
id | 1253746 |
size | 115,861 |
An LSP for DTS files built on top of tree-sitter-devicetree grammar.
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
})