summary refs log tree commit diff
path: root/.vim/lua/internal/spell.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/internal/spell.lua')
-rw-r--r--.vim/lua/internal/spell.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/.vim/lua/internal/spell.lua b/.vim/lua/internal/spell.lua
new file mode 100644
index 0000000..57cbad2
--- /dev/null
+++ b/.vim/lua/internal/spell.lua
@@ -0,0 +1,9 @@
+
+vim.opt_local.spell = true
+vim.opt.spellfile = vim.fn['spellfile#WritableSpellDir']() .. '/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]])