Skip to content

Language Server for Device Tree Source files

License

Notifications You must be signed in to change notification settings

anikinmd/dts-lsp

 
 

Repository files navigation

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

About

Language Server for Device Tree Source files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.9%
  • C 0.1%