Detect ansible playbooks based on path

This commit is contained in:
ViViDboarder 2021-01-13 09:22:06 -08:00
parent 9384d9b0c6
commit 302d5816dd
1 changed files with 5 additions and 0 deletions

View File

@ -154,6 +154,11 @@ call s:smart_source_rc('plugins/python')
" Disable polyglog for languages with more robust plugins
let g:polyglot_disabled = ['go', 'rust']
Plug 'sheerun/vim-polyglot'
" Custom rule for ansible playbook detection
augroup ansible_playbook
au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible
au BufRead,BufNewFile */playbooks/*.yaml set filetype=yaml.ansible
augroup end
" Languages not in polyglot
Plug 'ViViDboarder/force-vim', { 'for': ['apex', 'visualforce'] }