strozw / github-actions-languageserver.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-actions-languageserver.nvim

github-actions-languageserver.nvim is add github-actions-languageserver setup config into lspconfig.

Requirements

Installing

with lazy.nvim

    { "strozw/github-actions-languageserver.nvim" }

Usages

require("github-actions-languageserver").setup()

local lspconfig = require("lspconfig")

lspconfig.github_actions.setup({
  --@see https://github.com/actions/languageservices/blob/main/languageserver/src/initializationOptions.ts#L4-L31
  init_params = {
    sessionToken = "Your GitHub PAT (needed scopes is repo & workflow)",
    logLevel = 3 -- Debug: 0, Info: 1, Warn: 2, Error: 3, Default: nil
  }
})

Credits

About

License:MIT License


Languages

Language:Lua 100.0%