-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: gh-actions-language-server #3551
feat: gh-actions-language-server #3551
Conversation
ccad423
to
40699fa
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
d089a02
to
f13ecb9
Compare
f13ecb9
to
dd5f2f5
Compare
was getting a warning about this in lsp.log
I just gave this one a try, and noticed that the config does not work initially, due to the usage of |
that's true. I recommend defining this pattern for GitHub workflows: vim.filetype.add({
pattern = {
['.*/%.github[%w/]+workflows[%w/]+.*%.ya?ml'] = 'yaml.github',
},
}) We would either have to upstream this into Neovim core ftdetect or add a section to the docs |
The |
default_config = { | ||
cmd = { 'gh-actions-language-server', '--stdio' }, | ||
filetypes = { 'yaml.github' }, | ||
root_dir = util.root_pattern('.github'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that root_dir
can be a function, so it could inspect the contents of every .yaml
file to decide if it's a GH workflow.
I'll leave that as a followup for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's a standard way to identify GitHub YAML anyway. I mean, there are some specifics like inputs,
maybe? But they're optional - there's also the slight difference between Workflow & Action so detecting this wouldn't be reliable anyway I think.
name: Pull Request
about: Submit a pull request
title: 'add GitHub Actions language server'
Closes #2737