summary refs log tree commit diff
path: root/.vim/lua/internal/spell.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-10-14 20:57:03 +0200
committerRobert Günzler <r@gnzler.io>2022-10-14 21:01:15 +0200
commit2d2009413f8be624a7cca95cf702e32d9315cbef (patch)
treef024c1b5b27b886530e86221593e3cfdc3672d7e /.vim/lua/internal/spell.lua
parent6d7e524d3d7a71da2cea61b335a59e9544e2a6f7 (diff)
vim: move custom modules under internal/
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]])