Vim omni-completion support for pug (formerly jade) template engine
OTHER License
Based on official htmlcomplete.vim plugin so it completes:
Plus html5.vim data:
Plus pug specific completions:
You could also use the following options to disable a specific attribute group:
let g:html5_event_handler_attributes_complete = 0 " Disable event-handler attributes
let g:html5_rdfa_attributes_complete = 0 " Disable RDFa attributes
let g:html5_microdata_attributes_complete = 0 " Disable microdata attributes
let g:html5_aria_attributes_complete = 0 " Disable WAI-ARIA attribute
Add to your .vimrc
or filetype specific configuration ~/.vim/after/ftplugin/pug.vim
Use pathogen or plugin manager of your choise.
git clone https://github.com/dNitro/vim-pug-complete.git $HOME/.vim/bundle
Plugin 'dNitro/vim-pug-complete'
Plug 'dNitro/vim-pug-complete', { 'for': ['jade', 'pug'] }
Hit <C-x><C-o>
in insert mode everywhere you expect something to popup
OR
Fire up your autocomplete plugin and start typing
Filetype detection, indentation and syntax highlighting:
© 2016 Ali Zarifkar. All Rights Reserved.