Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions lsp/gh_actions_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---@brief
-- https://github.com/lttb/gh-actions-language-server
--
-- Language server for GitHub Actions.
--
-- The projects [forgejo](https://forgejo.org/) and [gitea](https://about.gitea.com/)
-- design their actions to be as compatible to github as possible
-- with only [a few differences](https://docs.gitea.com/usage/actions/comparison#unsupported-workflows-syntax) between the systems.
-- The `gh_actions_ls` is therefore enabled for those `yaml` files as well.
--
-- The `gh-actions-language-server` can be installed via `npm`:
--
-- ```sh
-- npm install -g gh-actions-language-server
-- ```
return {
cmd = { 'gh-actions-language-server', '--stdio' },
filetypes = { 'yaml' }, -- the `root_markers` prevent attaching to every yaml file
root_markers = {
'.github/workflows',
'.forgejo/workflows',
'.gitea/workflows',
},
capabilities = {
workspace = {
didChangeWorkspaceFolders = {
dynamicRegistration = true,
},
},
},
}
Loading