Update neovim configuration

This commit is contained in:
Sanchayan Maity 2017-03-29 16:35:42 +05:30
parent 0a213b0660
commit 87e1a13933

View file

@ -9,6 +9,7 @@ Plug 'Raimondi/delimitMate'
Plug 'ervandew/supertab' Plug 'ervandew/supertab'
" Haskell " Haskell
Plug 'neovimhaskell/haskell-vim', { 'for': [ 'haskell', 'cabal' ] } Plug 'neovimhaskell/haskell-vim', { 'for': [ 'haskell', 'cabal' ] }
Plug 'alx741/vim-hindent'
" Lisp " Lisp
Plug 'vim-scripts/paredit.vim', { 'for': [ 'scheme', 'lisp', 'commonlisp' ] } Plug 'vim-scripts/paredit.vim', { 'for': [ 'scheme', 'lisp', 'commonlisp' ] }
" LaTeX Editing " LaTeX Editing
@ -41,6 +42,14 @@ Plug 'zchee/deoplete-jedi'
" Autocomplete for Rust " Autocomplete for Rust
Plug 'sebastianmarkow/deoplete-rust' Plug 'sebastianmarkow/deoplete-rust'
Plug 'rust-lang/rust.vim' 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 " Initialize plugin system
call plug#end() call plug#end()
@ -110,8 +119,8 @@ endif
" Search and Replace " Search and Replace
nmap <Leader>s :%s//g<Left><Left> nmap <Leader>s :%s//g<Left><Left>
nnoremap ; : " Use ; for commands. "nnoremap ; : " Use ; for commands.
nnoremap Q @q " Use Q to execute default register. "nnoremap Q @q " Use Q to execute default register.
" Open file menu " Open file menu
nnoremap <Leader>o :CtrlP<CR> nnoremap <Leader>o :CtrlP<CR>
@ -138,7 +147,18 @@ nnoremap <A-j> <C-w>j
nnoremap <A-k> <C-w>k nnoremap <A-k> <C-w>k
nnoremap <A-l> <C-w>l 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 " 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_quantification = 1 " to enable highlighting of `forall`
let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec` let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc` 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_typeroles = 1 " to enable highlighting of type roles
let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static` 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: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 " For Rust
let g:deoplete#sources#rust#racer_binary='/home/sanchayan/.cargo/bin/racer' let g:deoplete#sources#rust#racer_binary='/home/sanchayan/.cargo/bin/racer'