diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index 7c889a0..c0a1c41 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -198,13 +198,14 @@ map.i.nore.silent['@@'] = 'u:CiteRef' -- map cc to insert a complete citation at cursor -- SPELL CHECKING --- Spell check set to O, 'o' for 'orthography': -- Move to the prev/next spelling error with [S ]S -- Move to the prev/next spelling error or suggestion with [s ]s -map.n.nore['ZZ'] = ':setlocal spell! spelllang=en_us,de_de' -map.n.nore['ZE'] = ':setlocal spell! spelllang=en_us' -map.n.nore['ZG'] = ':setlocal spell! spelllang=en_us' -map.n.nore['zz'] = '1z=' +map.n.nore['ZZ'] = ':setlocal spell! spelllang=en_us,de_de' +map.n.nore['ZE'] = ':setlocal spell! spelllang=en_us' +map.n.nore['ZG'] = ':setlocal spell! spelllang=de_de' +-- undo last spelling mistake from insert and normal mode +map.i.nore[''] = 'u[s1z=`]au' +map.n.nore['s'] = 'ms[s1z=`s' -- pp to comPile a document (or file, works for some languages like go/python/c) -- o to open the resulting document (mostly for pdfs)