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
|
" Ansible
|
||||||
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
|
au BufRead,BufNewFile *.yaml,*.yml if search('hosts:\|tasks:', 'nw') | set ft=yaml.ansible | endif
|
||||||
autocmd BufWritePre *.yml :Prettier <CR>
|
au BufWritePre *.yaml,*.yml :Prettier <CR>
|
||||||
let g:coc_filetype_map = {
|
let g:coc_filetype_map = {
|
||||||
\ 'yaml.ansible': 'ansible',
|
\ 'yaml.ansible': 'ansible',
|
||||||
\ }
|
\ }
|
||||||
|
Loading…
Reference in New Issue
Block a user