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