feat(lsp): Add yaml language server
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
-- ┌ ┐
|
||||||
|
-- │ GitHub Actions │
|
||||||
|
-- └ ┘
|
||||||
|
local lsp = vim.lsp
|
||||||
|
|
||||||
|
local capabilities = require("lsp-options").capabilities
|
||||||
|
local on_attach = require("lsp-options").on_attach
|
||||||
|
|
||||||
|
lsp.config("yamlls", {
|
||||||
|
capabilities = capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- ── Enable configs ───────────────────────────────────────────────
|
||||||
|
local enable = vim.lsp.enable
|
||||||
|
enable("yamlls")
|
||||||
@@ -38,6 +38,7 @@ return {
|
|||||||
require("plugins.lsp.ls.sql")
|
require("plugins.lsp.ls.sql")
|
||||||
require("plugins.lsp.ls.text")
|
require("plugins.lsp.ls.text")
|
||||||
require("plugins.lsp.ls.web")
|
require("plugins.lsp.ls.web")
|
||||||
|
require("plugins.lsp.ls.yaml")
|
||||||
-- ───────────────────────────────────────────────────────────────────
|
-- ───────────────────────────────────────────────────────────────────
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ return {
|
|||||||
"verible",
|
"verible",
|
||||||
"vtsls",
|
"vtsls",
|
||||||
"vue_ls",
|
"vue_ls",
|
||||||
|
"yamlls"
|
||||||
},
|
},
|
||||||
-- auto-install configured servers (with lspconfig)
|
-- auto-install configured servers (with lspconfig)
|
||||||
automatic_enable = false,
|
automatic_enable = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user