From 6168237d3793b7c8f1ea1d586319e3d922ff0a94 Mon Sep 17 00:00:00 2001 From: Anakin Childerhose <65310735+anakin4747@users.noreply.github.com> Date: Mon, 10 Jun 2024 02:09:43 -0400 Subject: feat(bitbake): add language-server-bitbake support (#3199) Add default config for `language-server-bitbake`, the Yocto Project's official language server for bit bake. --- lua/lspconfig/server_configurations/bitbake_ls.lua | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lua/lspconfig/server_configurations/bitbake_ls.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/bitbake_ls.lua b/lua/lspconfig/server_configurations/bitbake_ls.lua new file mode 100644 index 00000000..b540360c --- /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]], + }, + }, +} -- cgit v1.2.3-70-g09d2