fix go templating filetypes in nvim

This commit is contained in:
JesseBot 2024-03-24 14:28:04 +01:00
parent f6344059bc
commit aca14cabde
2 changed files with 3 additions and 3 deletions

View file

@ -66,11 +66,11 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {
"*/templates/*.tpl",
"*/templates/*.yaml",
"*/.github/workflows/*.yaml",
"*/.github/workflows/*.yml",
"*/.github/workflows/*.yaml"
},
callback = function()
vim.cmd("set filetype=gotmpl")
vim.cmd("set filetype=helm")
end,
})

View file

@ -133,7 +133,7 @@ lspconfig.yamlls.setup {
yaml = {
schemas = {
["https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.29.3-standalone-strict/all.json"] = "/manifests/*",
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["https://json.schemastore.org/github-workflow.json"] = "*/.github/workflows/*",
["https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/application_v1alpha1.json"] = "/*argocd_app.yaml",
["https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/applicationset_v1alpha1.json"] = "/*argocd_appset.yaml",
["https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/appproject_v1alpha1.json"] = "/*argocd_project.yaml",