Created
April 19, 2018 12:25
-
-
Save SkyLeite/bd4354802ecbb4643fe67a92036b1c52 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 '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 | |
| set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab | |
| " Plugin settings | |
| 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'] | |
| let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git' | |
| " 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) | |
| " 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