mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 01:27:35 +00:00
Detect ansible playbooks based on path
This commit is contained in:
parent
9384d9b0c6
commit
302d5816dd
@ -154,6 +154,11 @@ call s:smart_source_rc('plugins/python')
|
|||||||
" Disable polyglog for languages with more robust plugins
|
" Disable polyglog for languages with more robust plugins
|
||||||
let g:polyglot_disabled = ['go', 'rust']
|
let g:polyglot_disabled = ['go', 'rust']
|
||||||
Plug 'sheerun/vim-polyglot'
|
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
|
" Languages not in polyglot
|
||||||
Plug 'ViViDboarder/force-vim', { 'for': ['apex', 'visualforce'] }
|
Plug 'ViViDboarder/force-vim', { 'for': ['apex', 'visualforce'] }
|
||||||
|
Loading…
Reference in New Issue
Block a user