nvim: init.vim: Additional plugins & updates

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-10-30 19:42:51 +05:30
parent cc6bb13a55
commit be6d4aeaec

View file

@ -27,6 +27,7 @@ Plug 'scrooloose/nerdcommenter'
Plug 'sickill/vim-monokai'
" Autoload and read from dish if file changes
Plug 'tmux-plugins/vim-tmux-focus-events'
Plug 'wellle/tmux-complete.vim'
" For LaTeX support
Plug 'lervag/vimtex'
" For git support
@ -70,6 +71,7 @@ Plug 'vim-erlang/vim-erlang-omnicomplete'
Plug 'vim-erlang/vim-erlang-compiler'
" Miscellaneous
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'editorconfig/editorconfig-vim'
Plug 'tpope/vim-eunuch'
Plug 'jeetsukumaran/vim-buffergator'
@ -77,6 +79,7 @@ Plug 'vim-utils/vim-man'
Plug 'unblevable/quick-scope'
Plug 'igankevich/mesonic'
Plug 'rhysd/vim-clang-format', { 'for': [ 'c', 'cpp'] }
Plug 'pelodelfuego/vim-swoop'
" Initialize plugin system
call plug#end()
@ -358,6 +361,8 @@ let g:gutentags_ctags_extra_args = [
" Automatically detect style file and apply style to formatting
let g:clang_format#detect_style_file = 1
" Additional trigger not required with deoplete
let g:tmuxcomplete#trigger = ''
" Default indentations
autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2
@ -382,3 +387,14 @@ endfunction
nnoremap <Leader>css <Esc>:call LoadCscopeToQuickFix(expand("<cword>"),"s")<CR>
nnoremap <Leader>csg <Esc>:call LoadCscopeToQuickFix(expand("<cword>"),"g")<CR>
nnoremap <Leader>csc <Esc>:call LoadCscopeToQuickFix(expand("<cword>"),"c")<CR>
" For swoop
let g:swoopUseDefaultKeyMap = 0
let g:swoopPatternSpaceInsertsWildcard = 0
let g:swoopAutoInsertMode = 0
let g:swoopWindowsVerticalLayout = 1
nmap <Leader>os :call Swoop()<CR>
vmap <Leader>os :call SwoopSelection()<CR>
nmap <Leader>om :call SwoopMulti()<CR>
vmap <Leader>om :call SwoopMultiSelection()<CR>