summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/after/ftplugin/tex.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/tex.vim b/.config/nvim/after/ftplugin/tex.vim
index 7639c7e..9bd25f8 100644
--- a/.config/nvim/after/ftplugin/tex.vim
+++ b/.config/nvim/after/ftplugin/tex.vim
@@ -7,3 +7,10 @@ autocmd! numbertoggle
nnoremap <expr> j v:count ? (v:count > 5 ? "m'" . v:count : '') . 'j' : 'gj'
nnoremap <expr> k v:count ? (v:count > 5 ? "m'" . v:count : '') . 'k' : 'gk'
nnoremap <F8> :Make!<cr>
+
+nnoremap yog :Goyo<cr>
+
+autocmd! User GoyoEnter set spell
+autocmd! User GoyoLeave set nospell
+
+set spelllang=en