Update neovim configuration

This commit is contained in:
Sanchayan Maity 2017-03-29 16:35:42 +05:30
parent 0a213b0660
commit 87e1a13933
1 changed files with 25 additions and 2 deletions

View File

@ -9,6 +9,7 @@ Plug 'Raimondi/delimitMate'
Plug 'ervandew/supertab'
" Haskell
Plug 'neovimhaskell/haskell-vim', { 'for': [ 'haskell', 'cabal' ] }
Plug 'alx741/vim-hindent'
" Lisp
Plug 'vim-scripts/paredit.vim', { 'for': [ 'scheme', 'lisp', 'commonlisp' ] }
" LaTeX Editing
@ -41,6 +42,14 @@ Plug 'zchee/deoplete-jedi'
" Autocomplete for Rust
Plug 'sebastianmarkow/deoplete-rust'
Plug 'rust-lang/rust.vim'
" For Clojure
Plug 'guns/vim-clojure-static'
Plug 'junegunn/rainbow_parentheses.vim'
Plug 'guns/vim-clojure-highlight'
Plug 'tpope/vim-fireplace'
Plug 'tpope/vim-sexp-mappings-for-regular-people'
Plug 'guns/vim-sexp'
Plug 'tpope/vim-repeat'
" Initialize plugin system
call plug#end()
@ -110,8 +119,8 @@ endif
" Search and Replace
nmap <Leader>s :%s//g<Left><Left>
nnoremap ; : " Use ; for commands.
nnoremap Q @q " Use Q to execute default register.
"nnoremap ; : " Use ; for commands.
"nnoremap Q @q " Use Q to execute default register.
" Open file menu
nnoremap <Leader>o :CtrlP<CR>
@ -138,7 +147,18 @@ nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l
" Disable Arrow Keys
inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" For Haskell
let g:haskell_indent_disable = 1 " to disabled indentation
let g:haskell_enable_quantification = 1 " to enable highlighting of `forall`
let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc`
@ -146,6 +166,9 @@ let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
let g:hindent_on_save = 1
let g:hindent_indent_size = 4
let g:hindent_line_length = 80
" For Rust
let g:deoplete#sources#rust#racer_binary='/home/sanchayan/.cargo/bin/racer'