nvim: Change spell fix shortcut to z mapping

This commit is contained in:
Marty Oehme 2023-03-19 14:48:25 +01:00
parent 7a6575f760
commit 917d80b7f2
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -136,7 +136,6 @@ map('n', '<leader>vm', ":Mason<cr>", { desc = 'Mason' })
-- Set vim to distraction free prose mode with F11
map('n', '<leader>vz', ':ZenMode<cr>', { silent = true })
-- PLUGIN: Telescope GLOBAL FUZZY FINDING
-- buffers and files in current workdir
prefix({ ['<leader>f'] = { name = '+find' } })
@ -199,8 +198,8 @@ map('n', '<localleader>ZE', ':setlocal spell! spelllang=en_us<cr>',
map('n', '<localleader>ZG', ':setlocal spell! spelllang=de_de<cr>',
{ desc = 'Toggle DE spellcheck' })
-- undo last spelling mistake from insert and normal mode
map('i', '<c-s>', '<C-G>u<Esc>[s1z=`]a<C-G>u')
map('n', '<localleader>s', 'ms[s1z=`s', { desc = 'Fix last spell error' })
map('i', '<c-z>', '<C-G>u<Esc>[s1z=`]a<C-G>u')
map('n', '<localleader>z', 'ms[s1z=`s', { desc = 'Fix last spell error' })
-- PLUGIN: mini.nvim
prefix({ ['<leader>s'] = { name = '+show' } })