-
Notifications
You must be signed in to change notification settings - Fork 305
Servers YAML
Artyom Andreev edited this page Jan 28, 2023
·
4 revisions
npm install -g yaml-language-server
if executable('yaml-language-server')
augroup LspYaml
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'yaml-language-server',
\ 'cmd': {server_info->['yaml-language-server', '--stdio']},
\ 'allowlist': ['yaml', 'yaml.ansible'],
\ 'workspace_config': {
\ 'yaml': {
\ 'validate': v:true,
\ 'hover': v:true,
\ 'completion': v:true,
\ 'customTags': [],
\ 'schemas': {},
\ 'schemaStore': { 'enable': v:true },
\ }
\ }
\})
augroup END
endif