summary refs log tree commit diff
path: root/.vim/after/ftplugin
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-12-07 13:49:47 +0100
committerRobert Günzler <r@gnzler.io>2021-12-07 14:00:26 +0100
commit88997bc23d4b854423cc532eb1de6a9bd1faa023 (patch)
treedab53782d79f899583173e3403f69b0db0584c0d /.vim/after/ftplugin
parent66ca9ed1b74ad24204fd9432697f666d4434b115 (diff)
vim: move spell config to central place
Diffstat (limited to '.vim/after/ftplugin')
-rw-r--r--.vim/after/ftplugin/mail.lua5
-rw-r--r--.vim/after/ftplugin/markdown.lua2
2 files changed, 2 insertions, 5 deletions
diff --git a/.vim/after/ftplugin/mail.lua b/.vim/after/ftplugin/mail.lua
index 9912d65..beb2171 100644
--- a/.vim/after/ftplugin/mail.lua
+++ b/.vim/after/ftplugin/mail.lua
@@ -1,6 +1,3 @@
 
-vim.opt.spell = true
-vim.opt.spelllang = 'de'
-vim.opt.spellfile = vim.fn.stdpath('data') .. '/spellfile.utf-88.add'
-
+require('spell')
 vim.opt.cursorline = false
diff --git a/.vim/after/ftplugin/markdown.lua b/.vim/after/ftplugin/markdown.lua
index 7920b38..76d1bf1 100644
--- a/.vim/after/ftplugin/markdown.lua
+++ b/.vim/after/ftplugin/markdown.lua
@@ -1,7 +1,7 @@
 local nnoremap = require('astronauta.keymap').nnoremap
 
+require('spell')
 vim.opt.foldlevel = 1
-vim.opt.spell = true
 
 -- vim.fn.matchadd('Conceal', '\\[ \\]', 0, -1, { conceal = '☐' })
 -- vim.fn.matchadd('Conceal', '\\[x\\]', 0, -1, { conceal = '☑' })