Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

disrupted/github-actions.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-actions.nvim

Neovim plugin for GitHub Actions.

Features

  • configure LSP for GitHub Actions.

Installation

example using Lazy plugin manager

{
    'disrupted/github-actions.nvim',
    ft = 'yaml.github',
    ---@module 'github-actions.config'
    ---@type github_actions.Opts
    opts = {},
}

Configuration

Token provider

Some language server features require a GitHub access token.

The default token provider retrieves it from the gh CLI. Make sure it's installed and authenticated (check gh auth status).

If you want to retrieve it from a different CLI, such as a password mananger, you can override the token provider.

Here's an example for op (1Password CLI):

opts = {
  token_provider = function(callback)
    require('github-actions.lsp.token_provider').system({
      'op',
      'read',
      'op://Work/GitHub/Access Token/xg7h2j4k9m1qv8z3r5w8n2p6s0',
    }, callback)
  end,
}

You can also define a custom token provider function, e.g. to retrieve it from the environment.

opts = {
  token_provider = function(callback)
    callback(vim.env.GITHUB_TOKEN)
  end,
}

Notes

to add Treesitter parser for GitHub Actions syntax take a look at gh-actions.nvim

About

🚧 WIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages