nvim: after/ftplugin: Disable spell check for certain file types

Now that we enable spell check globally disable it for certain file
and buffer types like dirvish etc.
This commit is contained in:
Sanchayan Maity 2022-10-29 12:35:47 +05:30
parent 7113f5f44d
commit 36e7845aa4
3 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,5 @@
setlocal nospell
" Jump to sections of diff " Jump to sections of diff
nnoremap <buffer> [c ?^@@<CR> nnoremap <buffer> [c ?^@@<CR>
nnoremap <buffer> ]c /^@@<CR> nnoremap <buffer> ]c /^@@<CR>

View file

@ -1,4 +1,5 @@
setlocal bufhidden=hide setlocal bufhidden=hide
setlocal nospell
nnoremap <buffer> <silent> yy "+yy<C-^> nnoremap <buffer> <silent> yy "+yy<C-^>

View file

@ -1,3 +1,5 @@
setlocal nospell
nnoremap <buffer> <silent>q :bwipeout!<CR> nnoremap <buffer> <silent>q :bwipeout!<CR>
nnoremap <buffer> <Leader>gb :call git#git_branch_checkout()<CR> nnoremap <buffer> <Leader>gb :call git#git_branch_checkout()<CR>