Skip to content

Commit

Permalink
feat(bitbake): add language-server-bitbake support
Browse files Browse the repository at this point in the history
Add default config for `language-server-bitbake`, the Yocto Project's
official language server for bit bake.
  • Loading branch information
anakin4747 committed Jun 9, 2024
1 parent 92166b8 commit 8ae9d6e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lua/lspconfig/server_configurations/bitbake_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'language-server-bitbake', '--stdio' },
filetypes = { 'bitbake' },
root_dir = util.find_git_ancestor,
single_file_support = false,
},
docs = {
description = [[
https://github.com/yoctoproject/vscode-bitbake/tree/staging/server
https://www.npmjs.com/package/language-server-bitbake
Official Bitbake Language Server for the Yocto Project.
Can be installed from npm or github.
```
npm install -g language-server-bitbake
```
]],
default_config = {
root_dir = [[util.find_git_ancestor]],
},
},
}

0 comments on commit 8ae9d6e

Please sign in to comment.