dts-lsp

Crates.iodts-lsp
lib.rsdts-lsp
version0.1.5
sourcesrc
created_at2024-05-27 20:22:45.560082
updated_at2024-09-24 22:52:54.774027
descriptionLanguage Server for Device Tree Source files
homepagehttps://github.com/igor-prusov/dts-lsp
repositoryhttps://github.com/igor-prusov/dts-lsp
max_upload_size
id1253746
size115,861
Igor Prusov (igor-prusov)

documentation

https://github.com/igor-prusov/dts-lsp

README

Language Server for Device Tree Source files

Build Status Crates.io

An LSP for DTS files built on top of tree-sitter-devicetree grammar.

Features and Roadmap

  • Go to label definition
  • Find references to label
  • Handle editor buffer changes
  • Rename labels/references

Installation

cargo install dts-lsp

Neovim configuration

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
})
Commit count: 113

cargo fmt