aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAnakin Childerhose <65310735+anakin4747@users.noreply.github.com>2024-06-10 02:09:43 -0400
committerGitHub <noreply@github.com>2024-06-10 14:09:43 +0800
commit6168237d3793b7c8f1ea1d586319e3d922ff0a94 (patch)
tree6293e1b0f021b73f48fdbaa518abede62ae6e18e /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar.gz
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar.bz2
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar.lz
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar.xz
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.tar.zst
nvim-lspconfig-6168237d3793b7c8f1ea1d586319e3d922ff0a94.zip
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.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/bitbake_ls.lua27
1 files changed, 27 insertions, 0 deletions
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]],
+ },
+ },
+}