[Actions] Add github actions language server
This commit is contained in:
20
nvim/lua/plugins/lsp/ls/gh-actions.lua
Normal file
20
nvim/lua/plugins/lsp/ls/gh-actions.lua
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
-- ┌ ┐
|
||||||
|
-- │ GitHub Actions │
|
||||||
|
-- └ ┘
|
||||||
|
local lsp = vim.lsp
|
||||||
|
|
||||||
|
local capabilities = require("lsp-options").capabilities
|
||||||
|
local on_attach = require("lsp-options").on_attach
|
||||||
|
|
||||||
|
lsp.config("gh_actions_ls", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
|
filetypes = {
|
||||||
|
"yaml.actions",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- ── Enable configs ───────────────────────────────────────────────
|
||||||
|
local enable = vim.lsp.enable
|
||||||
|
enable("gh_actions_ls")
|
||||||
Reference in New Issue
Block a user