add yaml support

This commit is contained in:
Tine Jozelj 2021-03-20 23:52:08 +01:00
parent df53f51ce5
commit bceab31d59
2 changed files with 7 additions and 2 deletions

View file

@ -14,5 +14,9 @@
"typescriptreact"
],
"tsserver.formatOnType": true,
"coc.preferences.formatOnType": true
"coc.preferences.formatOnType": true,
"yaml.schemaStore.enable": true,
"yaml.schemas": {
"kubernetes": "/*.yaml"
}
}

View file

@ -31,7 +31,8 @@ Plug 'kevinoid/vim-jsonc'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
let g:coc_global_extensions = [
\ 'coc-tsserver',
\ 'coc-prettier'
\ 'coc-prettier',
\ 'coc-yaml'
\ ]
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')