nvim: init.vim: Miscellaneous fixes
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
a3501508ba
commit
89d199f2b7
1 changed files with 18 additions and 1 deletions
|
@ -165,7 +165,7 @@ set fileformat=unix
|
||||||
|
|
||||||
set clipboard^=unnamed,unnamedplus
|
set clipboard^=unnamed,unnamedplus
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set completeopt=menu,noselect,preview,noinsert
|
set completeopt+=menu,noselect,preview,noinsert
|
||||||
" Required for vim-workspace
|
" Required for vim-workspace
|
||||||
" See https://github.com/thaerkh/vim-workspace/issues/11
|
" See https://github.com/thaerkh/vim-workspace/issues/11
|
||||||
set sessionoptions-=blank
|
set sessionoptions-=blank
|
||||||
|
@ -326,6 +326,23 @@ augroup ToggleSearchHighlighting
|
||||||
autocmd InsertLeave * setlocal hlsearch
|
autocmd InsertLeave * setlocal hlsearch
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
" Close QF window if it is last window
|
||||||
|
augroup QFClose
|
||||||
|
au!
|
||||||
|
au WinEnter * if winnr('$') == 1 && &buftype == "quickfix"|q|endif
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" Taken from http://seenaburns.com/vim-setup-for-rust/
|
||||||
|
" Neomake
|
||||||
|
" Gross hack to stop Neomake running when exitting because it creates a zombie cargo check process
|
||||||
|
" which holds the lock and never exits. But then, if you only have QuitPre, closing one pane will
|
||||||
|
" disable neomake, so BufEnter reenables when you enter another buffer.
|
||||||
|
let s:quitting = 0
|
||||||
|
au QuitPre *.rs let s:quitting = 1
|
||||||
|
au BufEnter *.rs let s:quitting = 0
|
||||||
|
au BufWritePost *.rs if ! s:quitting | Neomake | else | echom "Neomake disabled"| endif
|
||||||
|
let g:neomake_warning_sign = {'text': '?'}
|
||||||
|
|
||||||
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`
|
||||||
|
|
Loading…
Reference in a new issue