Skip to content

Commit

Permalink
docs: describe filetype pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Jan 13, 2025
1 parent a1a73fc commit aed379d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/lspconfig/configs/gh_actions_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ https://github.com/lttb/gh-actions-language-server
Language server for GitHub Actions.
The server is registered for the special `yaml.github` filetype. You need to configure this filetype pattern for GitHub workflow files.
```lua
vim.filetype.add({
pattern = {
['.*/%.github[%w/]+workflows[%w/]+.*%.ya?ml'] = 'yaml.github',
},
})
```
`gh-actions-language-server` can be installed via `npm`:
```sh
Expand Down

0 comments on commit aed379d

Please sign in to comment.