diff --git a/nvim/init.vim b/nvim/init.vim index 6758bb1..64de3d4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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 s :%s//g -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 o :CtrlP @@ -138,7 +147,18 @@ nnoremap j nnoremap k nnoremap l +" Disable Arrow Keys +inoremap +inoremap +inoremap +inoremap +noremap +noremap +noremap +noremap + " 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'