#lsp #language-server #device-tree #dts

app dts-lsp

Language Server for Device Tree Source files

3 releases

0.1.4 Jun 19, 2024
0.1.3 May 29, 2024
0.1.2 May 27, 2024

#291 in Development tools

Download history 77/week @ 2024-05-21 200/week @ 2024-05-28 16/week @ 2024-06-04 6/week @ 2024-06-11 219/week @ 2024-06-18 2/week @ 2024-06-25

228 downloads per month

MIT/Apache

56KB
1.5K SLoC

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
})

Dependencies

~11–20MB
~306K SLoC