summary refs log tree commit diff
path: root/.vim/lua/spell.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/spell.lua')
-rw-r--r--.vim/lua/spell.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/.vim/lua/spell.lua b/.vim/lua/spell.lua
index 885b721..6ab157c 100644
--- a/.vim/lua/spell.lua
+++ b/.vim/lua/spell.lua
@@ -1,8 +1,11 @@
 
-vim.opt.spell = true
+vim.opt_local.spell = true
 -- vim.opt.spelllang = 'de_de,en_en'
 vim.opt.spelllang = 'en_en'
 vim.opt.spellfile = vim.fn.stdpath('data') .. '/spellfile.utf-8.add'
+vim.opt.spellcapcheck = ''
+vim.opt.spelloptions = {'camel'}
+vim.opt.spellsuggest = 'double'
 
 vim.keymap.set('n', '<C-l>', require('telescope.builtin').spell_suggest)
 vim.keymap.set('n', '<C-l>', [[<c-g>u<esc>[s1z=`]a<c-g>u]])