From 302d5816dd6bee390d0f50402deea44c10fbfb1c Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 13 Jan 2021 09:22:06 -0800 Subject: [PATCH] Detect ansible playbooks based on path --- vim/rc/plugins.rc.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim/rc/plugins.rc.vim b/vim/rc/plugins.rc.vim index 33380f2..ec07228 100644 --- a/vim/rc/plugins.rc.vim +++ b/vim/rc/plugins.rc.vim @@ -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'] }