nvim: init.vim: Do not load sessions while explicitly loading a file
Also remove spell lang for git commits as it seems to complain about them. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
960af2006a
commit
b3ac08c56f
1 changed files with 2 additions and 1 deletions
|
@ -426,6 +426,7 @@ let g:workspace_session_directory = $HOME . '/.vim/session/'
|
||||||
let g:workspace_undodir = $HOME . '/.vim/undodir'
|
let g:workspace_undodir = $HOME . '/.vim/undodir'
|
||||||
let g:workspace_autosave = 0
|
let g:workspace_autosave = 0
|
||||||
let g:workspace_autosave_ignore = ['gitcommit', 'qf', 'tagbar']
|
let g:workspace_autosave_ignore = ['gitcommit', 'qf', 'tagbar']
|
||||||
|
let g:workspace_session_disable_on_args = 1
|
||||||
" For comfortable motion
|
" For comfortable motion
|
||||||
let g:comfortable_motion_scroll_down_key = "j"
|
let g:comfortable_motion_scroll_down_key = "j"
|
||||||
let g:comfortable_motion_scroll_up_key = "k"
|
let g:comfortable_motion_scroll_up_key = "k"
|
||||||
|
@ -448,7 +449,7 @@ autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 te
|
||||||
autocmd FileType fstab,systemd set noexpandtab
|
autocmd FileType fstab,systemd set noexpandtab
|
||||||
autocmd FileType gitconfig,sh,toml set noexpandtab
|
autocmd FileType gitconfig,sh,toml set noexpandtab
|
||||||
" Spell check for git commits
|
" Spell check for git commits
|
||||||
autocmd FileType gitcommit setlocal spell spelllang=en_uk
|
autocmd FileType gitcommit setlocal spell
|
||||||
" Spell Checking
|
" Spell Checking
|
||||||
autocmd BufRead,BufNewFile *.md,*.txt setlocal spell spelllang=en_uk
|
autocmd BufRead,BufNewFile *.md,*.txt setlocal spell spelllang=en_uk
|
||||||
" Automatically resize the window
|
" Automatically resize the window
|
||||||
|
|
Loading…
Reference in a new issue