forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyamlls.lua
37 lines (35 loc) · 1.2 KB
/
yamlls.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-- yaml-language-server settings
--
local config = {
settings = {
yaml = {
format = { enable = true, singleQuote = true },
validate = true,
hover = true,
completion = true,
schemaStore = {
enable = true,
url = 'https://www.schemastore.org/api/json/catalog.json',
},
schemas = {
kubernetes = {
'helm/*.yaml',
'kube/*.yaml',
},
['http://json.schemastore.org/github-workflow'] = '.github/workflows/*.{yml,yaml}',
['http://json.schemastore.org/github-action'] = '.github/action.{yml,yaml}',
['http://json.schemastore.org/ansible-stable-2.9'] = 'roles/tasks/*.{yml,yaml}',
['http://json.schemastore.org/ansible-playbook'] = 'playbook.{yml,yaml}',
['http://json.schemastore.org/prettierrc'] = '.prettierrc.{yml,yaml}',
['http://json.schemastore.org/stylelintrc'] = '.stylelintrc.{yml,yaml}',
['http://json.schemastore.org/circleciconfig'] = '.circleci/**/*.{yml,yaml}',
['http://json.schemastore.org/kustomization'] = 'kustomization.{yml,yaml}',
['http://json.schemastore.org/helmfile'] = 'helmfile.{yml,yaml}',
['http://json.schemastore.org/gitlab-ci'] = '/*lab-ci.{yml,yaml}',
}
}
}
}
return {
config = function(_) return config end,
}