nvim: Changed the *.yaml types

This commit is contained in:
Marcin Woźniak 2022-04-25 12:17:50 +02:00
parent 3ccc1efef6
commit 3142726190
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -354,8 +354,8 @@ map <F4> :setlocal spell! spelllang=pl<CR>
""""""""""""""""""""""""""""""""
" Ansible
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
autocmd BufWritePre *.yml :Prettier <CR>
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
au BufWritePre *.yaml,*.yml :Prettier <CR>
let g:coc_filetype_map = {
\ 'yaml.ansible': 'ansible',
\ }