Skip to content

Language Server for Device Tree Source files

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

igor-prusov/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

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published