Created
April 18, 2018 14:45
-
-
Save SkyLeite/b53d409647464e0e5796fa5035fae956 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call plug#begin() | |
| Plug 'rafi/awesome-vim-colorschemes' | |
| Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
| Plug 'Shougo/neosnippet' | |
| Plug 'Shougo/neosnippet-snippets' | |
| Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } | |
| Plug 'ervandew/supertab' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'neomake/neomake' | |
| Plug 'mhartington/nvim-typescript' | |
| Plug 'leafgarland/typescript-vim' | |
| Plug 'jason0x43/vim-js-indent' | |
| Plug 'othree/jspc.vim' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'scrooloose/nerdtree' | |
| call plug#end() | |
| set clipboard+=unnamedplus | |
| let &t_SI = "\<Esc>[6 q" | |
| let &t_SR = "\<Esc>[4 q" | |
| let &t_EI = "\<Esc>[2 q" | |
| colorscheme happy_hacking | |
| set number | |
| let g:SuperTabDefaultCompletionType = "<c-n>" | |
| let g:deoplete#sources#ternjs#types = 1 | |
| let g:deoplete#sources#ternjs#docs = 1 | |
| let g:deoplete#enable_at_startup = 1 | |
| let g:neosnippet#enable_completed_snippet = 1 | |
| call neomake#configure#automake('rw', 750) | |
| let g:neomake_javascript_eslint_exe = system('PATH=$(npm bin):$PATH && which eslint | tr -d "\n"') | |
| let g:neomake_javascript_enabled_makers = ['eslint'] | |
| " Leader mappings | |
| map <leader>s :e ~/.config/nvim/init.vim<CR> | |
| " Plugin key-mappings. | |
| " Note: It must be "imap" and "smap". It uses <Plug> mappings. | |
| imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
| smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
| xmap <C-k> <Plug>(neosnippet_expand_target) | |
| map <C-n> :NERDTreeToggle<CR> | |
| " SuperTab like snippets behavior. | |
| " Note: It must be "imap" and "smap". It uses <Plug> mappings. | |
| "imap <expr><TAB> | |
| " \ pumvisible() ? "\<C-n>" : | |
| " \ neosnippet#expandable_or_jumpable() ? | |
| " \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | |
| smap <expr><TAB> neosnippet#expandable_or_jumpable() ? | |
| \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | |
| " For conceal markers. | |
| if has('conceal') | |
| set conceallevel=2 concealcursor=niv | |
| endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment