Improve nvim
parent
6eea966aa9
commit
4f861f9137
|
@ -26,14 +26,24 @@ Plug 'tpope/vim-fugitive'
|
|||
|
||||
" c, c++
|
||||
Plug 'zchee/deoplete-clang', { 'for': [ 'c', 'cpp', 'h' ] }
|
||||
imap <expr> <C-e> emmet#expandAbbrIntelligent("\<C-e>")
|
||||
let g:user_emmet_leader_key='<C-t>'
|
||||
|
||||
" html, css
|
||||
Plug 'mattn/emmet-vim', { 'for': [ 'html', 'css', 'scss' ] }
|
||||
Plug 'mattn/emmet-vim', { 'for': [ 'html', 'css', 'scss', 'vue' ] }
|
||||
let g:user_emmet_leader_key = '<C-t>'
|
||||
function! s:setup_emmet_shortcut()
|
||||
imap <expr> <C-e> emmet#expandAbbrIntelligent("\<C-e>")
|
||||
endfunction
|
||||
autocmd FileType html,css,scss,vue call s:setup_emmet_shortcut()
|
||||
|
||||
" javascript
|
||||
Plug 'wokalski/autocomplete-flow', { 'for': [ 'js' ] }
|
||||
Plug 'wokalski/autocomplete-flow', { 'for': [ 'javascript' ] }
|
||||
Plug 'Quramy/vim-js-pretty-template', { 'for': [ 'javascript' ] }
|
||||
function! s:setup_prettytemplate()
|
||||
JsPreTmpl html
|
||||
endfunction
|
||||
"autocmd FileType javascript call s:setup_prettytemplate
|
||||
" Moved to plugin init
|
||||
Plug 'posva/vim-vue', { 'for': [ 'vue' ] }
|
||||
|
||||
" go
|
||||
function! BuildDeopleteGo(arg)
|
||||
|
@ -90,6 +100,13 @@ call plug#end()
|
|||
" main configuration
|
||||
|
||||
|
||||
" plugin init
|
||||
|
||||
" javascript
|
||||
autocmd FileType javascript JsPreTmpl html
|
||||
|
||||
" other init
|
||||
|
||||
" theme
|
||||
set background=dark
|
||||
if $LIGHT == 'true'
|
||||
|
@ -120,7 +137,5 @@ set list
|
|||
" spellcheck
|
||||
set spell spelllang=en_gb
|
||||
|
||||
|
||||
|
||||
" vim: set expandtab ts=2 sw=2:
|
||||
|
||||
|
|
Loading…
Reference in New Issue