From 8ae9d6ebae9233fc49968b32fbf4c500b70569e1 Mon Sep 17 00:00:00 2001 From: Anakin Childerhose Date: Sun, 9 Jun 2024 09:44:53 -0400 Subject: [PATCH] feat(bitbake): add language-server-bitbake support Add default config for `language-server-bitbake`, the Yocto Project's official language server for bit bake. --- .../server_configurations/bitbake_ls.lua | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lua/lspconfig/server_configurations/bitbake_ls.lua diff --git a/lua/lspconfig/server_configurations/bitbake_ls.lua b/lua/lspconfig/server_configurations/bitbake_ls.lua new file mode 100644 index 0000000000..b540360c51 --- /dev/null +++ b/lua/lspconfig/server_configurations/bitbake_ls.lua @@ -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]], + }, + }, +}