Skip to content

Commit

Permalink
update for neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
doug committed Nov 14, 2015
1 parent 1cbee01 commit 6bd7f59
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ NeoBundleLazy 'flowtype/vim-flow', {
" \ },
" \ }
" NeoBundle 'Quramy/tsuquyomi'
NeoBundle 'clausreinke/typescript-tools'
NeoBundle 'leafgarland/typescript-vim'

call neobundle#end()

Expand Down Expand Up @@ -99,10 +101,16 @@ map <C-e> :NERDTreeToggle<CR>
nnoremap <leader>u :GundoToggle<CR>
" Navigation without <c-w> (which closes tabs)
nnoremap <leader><leader>h <C-w>h
nnoremap <leader><leader>j <C-w>j
nnoremap <leader><leader>k <C-w>k
nnoremap <leader><leader>l <C-w>l
nnoremap <leader>h <C-w>h
nnoremap <leader>j <C-w>j
nnoremap <leader>k <C-w>k
nnoremap <leader>l <C-w>l
" YCM YouCompleteMe configurations
if !exists("g:ycm_semantic_triggers")
let g:ycm_semantic_triggers = {}
endif
let g:ycm_semantic_triggers['typescript'] = ['.']

" " make YCM compatible with UltiSnips (using supertab)
" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
Expand All @@ -116,12 +124,17 @@ nnoremap <leader><leader>l <C-w>l

let g:synastic_javascript_checkers=['jscs']

" make typescript syntax highlight in javascript
au BufRead,BufNewFile *.ts set syntax=javascript

" automatically remove trailing whitespace
autocmd BufWritePre * :%s/\s\+$//e

" flow config
let g:flow#autoclose=1
let g:flow#flowpath="/home/dougfritz/.nvm/versions/node/v5.0.0/bin/flow"
let g:flow#omnifunc=1

" Ctrl+P
let g:ctrlp_custom_ignore = 'node_modules\|bower_components\|DS_Store\|git'

" Load local overides and extensions
if filereadable(expand('~/.nvimrc.local'))
source ~/.nvimrc.local
Expand Down

0 comments on commit 6bd7f59

Please sign in to comment.