nvim: init.vim: Switch to vim-workspace
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
0c607cf1ce
commit
e9941f935a
1 changed files with 15 additions and 5 deletions
|
@ -17,8 +17,7 @@ Plug 'thirtythreeforty/lessspace.vim'
|
|||
Plug 'bling/vim-airline'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
" Manage Project sessions
|
||||
Plug 'tpope/vim-obsession'
|
||||
Plug 'dhruvasagar/vim-prosession'
|
||||
Plug 'thaerkh/vim-workspace'
|
||||
" Explore filesystem
|
||||
Plug 'scrooloose/nerdtree'
|
||||
" Commenter
|
||||
|
@ -144,6 +143,9 @@ set fileformat=unix
|
|||
|
||||
set clipboard^=unnamed,unnamedplus
|
||||
set completeopt=menuone,noselect,preview,noinsert
|
||||
" Required for vim-workspace
|
||||
" See https://github.com/thaerkh/vim-workspace/issues/11
|
||||
set sessionoptions-=blank
|
||||
|
||||
" Theme
|
||||
syntax enable
|
||||
|
@ -235,6 +237,8 @@ nnoremap <Leader>ns :NeomakeSh
|
|||
nnoremap <Leader>njl :NeomakeListJobs<CR>
|
||||
nnoremap <Leader>nja :NeomakeCancelJobs<CR>
|
||||
nnoremap <Leader>njc :NeomakeCancelJob
|
||||
" For workspace
|
||||
nnoremap <Leader>sw :ToggleWorkspace<CR>
|
||||
|
||||
" Haskell specific
|
||||
" For ghcid
|
||||
|
@ -390,6 +394,15 @@ let g:gutentags_ctags_extra_args = [
|
|||
let g:clang_format#detect_style_file = 1
|
||||
" Additional trigger not required with deoplete
|
||||
let g:tmuxcomplete#trigger = ''
|
||||
" Required for vimtex
|
||||
let g:vimtex_compiler_progname = 'nvr'
|
||||
" Fix deoplete's tab behaviour
|
||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||
" For workspace
|
||||
let g:workspace_session_directory = $HOME . '/.vim/session/'
|
||||
let g:workspace_undodir = $HOME . '/.vim/undodir'
|
||||
let g:workspace_autosave = 0
|
||||
let g:workspace_autosave_ignore = ['gitcommit', 'qf', 'nerdtree', 'tagbar']
|
||||
|
||||
" Default indentations
|
||||
autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2
|
||||
|
@ -409,9 +422,6 @@ vmap <Leader>os :call SwoopSelection()<CR>
|
|||
nmap <Leader>om :call SwoopMulti()<CR>
|
||||
vmap <Leader>om :call SwoopMultiSelection()<CR>
|
||||
|
||||
let g:vimtex_compiler_progname = 'nvr'
|
||||
let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||
|
||||
" CScope & skim integration
|
||||
" Taken from https://gist.github.com/amitab/cd051f1ea23c588109c6cfcb7d1d5776
|
||||
" However, the above gist has completely wrong mappings
|
||||
|
|
Loading…
Reference in a new issue