From 36e7845aa4c6d5605d6a539dd70d52b2041c768a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 29 Oct 2022 12:35:47 +0530 Subject: [PATCH] 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. --- nvim/.config/nvim/after/ftplugin/diff.vim | 2 ++ nvim/.config/nvim/after/ftplugin/dirvish.vim | 1 + nvim/.config/nvim/after/ftplugin/git.vim | 2 ++ 3 files changed, 5 insertions(+) diff --git a/nvim/.config/nvim/after/ftplugin/diff.vim b/nvim/.config/nvim/after/ftplugin/diff.vim index 149fd93..cb94875 100644 --- a/nvim/.config/nvim/after/ftplugin/diff.vim +++ b/nvim/.config/nvim/after/ftplugin/diff.vim @@ -1,3 +1,5 @@ +setlocal nospell + " Jump to sections of diff nnoremap [c ?^@@ nnoremap ]c /^@@ diff --git a/nvim/.config/nvim/after/ftplugin/dirvish.vim b/nvim/.config/nvim/after/ftplugin/dirvish.vim index c898b6b..b81c585 100644 --- a/nvim/.config/nvim/after/ftplugin/dirvish.vim +++ b/nvim/.config/nvim/after/ftplugin/dirvish.vim @@ -1,4 +1,5 @@ setlocal bufhidden=hide +setlocal nospell nnoremap yy "+yy diff --git a/nvim/.config/nvim/after/ftplugin/git.vim b/nvim/.config/nvim/after/ftplugin/git.vim index 08b38fe..7f8d3d7 100644 --- a/nvim/.config/nvim/after/ftplugin/git.vim +++ b/nvim/.config/nvim/after/ftplugin/git.vim @@ -1,3 +1,5 @@ +setlocal nospell + nnoremap q :bwipeout! nnoremap gb :call git#git_branch_checkout()