aboutsummaryrefslogtreecommitdiff
path: root/ftdetect/php.vim
diff options
context:
space:
mode:
authorhank <hankchiu.tw@gmail.com>2019-11-06 10:14:12 +0800
committerhank <hankchiu.tw@gmail.com>2019-11-06 10:22:11 +0800
commit066097e0b9eeb9066ba8974d9718c5b26b82cffc (patch)
treead7cb5c70bf49944ff75ff877e18e1662386f948 /ftdetect/php.vim
parent427ef6830294c722f04cd3799f2c27a6629976a6 (diff)
downloadvim-prettier-066097e0b9eeb9066ba8974d9718c5b26b82cffc.tar.xz
Use `get()` to check `g:prettier#autoformat` safely in ftplugin
Due to the fact that `plugin` will be loaded after `ftplugin`(http://vimdoc.sourceforge.net/htmldoc/filetype.html#ftplugin-overrule), even we set `g:prettier#autoformat` in plugin/prettier.vim, it's treated as undefined in ftplugin/*.vim. This happened when using `vim-pathogen`.
Diffstat (limited to 'ftdetect/php.vim')
0 files changed, 0 insertions, 0 deletions