diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-02-03 08:42:28 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-02-03 08:42:28 +0000 |
| commit | 00b236b795acfb79339bd6771488c155073a2889 (patch) | |
| tree | 2fe3893cec9a64fac43cd3c5bdb91ccccc13e562 /doc/configs.txt | |
| parent | feat: dts-lsp #3595 (diff) | |
| download | nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar.gz nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar.bz2 nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar.lz nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar.xz nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.tar.zst nvim-lspconfig-00b236b795acfb79339bd6771488c155073a2889.zip | |
docs: update configs.md
skip-checks: true
Diffstat (limited to 'doc/configs.txt')
| -rw-r--r-- | doc/configs.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/configs.txt b/doc/configs.txt index 22b849bd..e4723a2e 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -86,6 +86,7 @@ Nvim by running `:help lspconfig-all`. - [dprint](#dprint) - [drools_lsp](#drools_lsp) - [ds_pinyin_lsp](#ds_pinyin_lsp) +- [dts_lsp](#dts_lsp) - [earthlyls](#earthlyls) - [ecsact](#ecsact) - [efm](#efm) @@ -3135,6 +3136,45 @@ Default config: - `single_file_support` : `true` +## dts_lsp + +`dts-lsp` is an LSP for Devicetree files built on top of tree-sitter-devicetree grammar. +Language servers can be used in many editors, such as Visual Studio Code, Emacs +or Vim + +Install `dts-lsp` from https://github.com/igor-prusov/dts-lsp and add it to path + +`dts-lsp` doesn't require any configuration. + +More about Devicetree: +https://www.devicetree.org/ +https://docs.zephyrproject.org/latest/build/dts/index.html + +Snippet to enable the language server: +```lua +require'lspconfig'.dts_lsp.setup{} +``` + +Default config: +- `cmd` : + ```lua + { "dts-lsp" } + ``` +- `filetypes` : + ```lua + { "dts", "dtsi", "overlay" } + ``` +- `name` : + ```lua + "dts_lsp" + ``` +- `root_dir` source (use "gF" to visit): [../lua/lspconfig/configs/dts_lsp.lua:2](../lua/lspconfig/configs/dts_lsp.lua#L2) +- `settings` : + ```lua + {} + ``` + + ## earthlyls https://github.com/glehmann/earthlyls |
