mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 13:44:46 +08:00
feat: enable javascript autocmds first
This commit is contained in:
10
filetype.vim
10
filetype.vim
@@ -1,4 +1,12 @@
|
||||
au BufNewFile,BufRead *.vue,*.wpy setf javascript.vue
|
||||
au BufNewFile,BufRead *.vue,*.wpy call s:setFileType()
|
||||
|
||||
function! s:setFileType()
|
||||
" enable javascript autocmds first
|
||||
let &filetype = 'javascript'
|
||||
|
||||
" then set filetype
|
||||
let &filetype = 'javascript.vue'
|
||||
endfunction
|
||||
|
||||
if !exists("g:vim_vue_plugin_has_init_indent")
|
||||
let ext = expand("%:e")
|
||||
|
||||
Reference in New Issue
Block a user