nvim: Changed the *.yaml types
This commit is contained in:
parent
3ccc1efef6
commit
3142726190
@ -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',
|
||||
\ }
|
||||
|
Loading…
Reference in New Issue
Block a user