neovim: Enable spell checking in tex and mkdn

This commit is contained in:
Peter Cai 2022-08-16 09:24:20 -04:00
parent 6ed2bd98aa
commit f7495a6373
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ end
EOF EOF
autocmd TermOpen term://* lua set_terminal_keymaps() autocmd TermOpen term://* lua set_terminal_keymaps()
" Spell checking
autocmd FileType tex,markdown setlocal spell spelllang=en_us
" Editor integration " Editor integration
let $GIT_EDITOR = 'nvr -cc split --remote-wait --servername ' . v:servername let $GIT_EDITOR = 'nvr -cc split --remote-wait --servername ' . v:servername
autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete autocmd FileType gitcommit,gitrebase,gitconfig set bufhidden=delete