From f13ecb9e12b3969a67086a97dbdd75e0aa54f611 Mon Sep 17 00:00:00 2001 From: disrupted Date: Thu, 9 Jan 2025 12:06:31 +0100 Subject: [PATCH] feat: gh-actions-ls --- lua/lspconfig/configs/gh_actions_ls.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lua/lspconfig/configs/gh_actions_ls.lua diff --git a/lua/lspconfig/configs/gh_actions_ls.lua b/lua/lspconfig/configs/gh_actions_ls.lua new file mode 100644 index 0000000000..baf314c6ab --- /dev/null +++ b/lua/lspconfig/configs/gh_actions_ls.lua @@ -0,0 +1,23 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'gh-actions-language-server', '--stdio' }, + filetypes = { 'yaml.github' }, + root_dir = util.root_pattern('.github', '.git'), + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/lttb/gh-actions-language-server + +Language server for GitHub Actions. + +`gh-actions-language-server` can be installed via `npm`: + +```sh +npm install -g gh-actions-language-server +``` +]], + }, +}