diff --git a/init.vim b/init.vim index 20548bb..8a3e7e8 100644 --- a/init.vim +++ b/init.vim @@ -30,20 +30,10 @@ Plug 'Shougo/deoplete.nvim' Plug 'Shougo/neosnippet.vim' | Plug 'Shougo/neosnippet-snippets' " Python highlight Plug 'hdima/python-syntax' -" Search files -" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | Plug 'junegunn/fzf.vim' -" Real-time collaborative editing -" Plug 'Floobits/floobits-neovim' -" An asynchronous markdown preview plugin for Neovim (requires Rust and Cargo) -" function! BuildComposer(info) -" if a:info.status != 'unchanged' || a:info.force -" !cargo build --release -" UpdateRemotePlugins -" endif -" endfunction -" Plug 'euclio/vim-markdown-composer', {'do': function('BuildComposer')} " Git stuff Plug 'tpope/vim-fugitive' +" Typescript-doc +Plug 'https://gogs.tforgione.fr/tforgione/typescript-doc.git' " Add plugins to &runtimepath call plug#end() " }}} @@ -204,6 +194,10 @@ endif " Markdown : do not open browser if i'm not telling you let g:instant_markdown_autostart = 0 +nnoremap :call InsertTypeScriptDoc() +inoremap :call InsertTypeScriptDoc() +vnoremap :call InsertTypeScriptDoc() + autocmd BufWritePost * :silent execute ':w! ' ."$HOME/.vim/backups/" . escape(substitute(expand('%:p'), "/", "%", "g"), "%") autocmd BufEnter,BufNew *.pgsql set filetype=pgsql.