From 6341c35d3de201916f12870aecb055fed52808a2 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 7 Sep 2023 15:05:39 +0200 Subject: [PATCH] spell hotkeys --- lua/plex/config/autocmds.lua | 2 +- lua/plex/config/keymaps.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/plex/config/autocmds.lua b/lua/plex/config/autocmds.lua index 44289c8..7c0c790 100644 --- a/lua/plex/config/autocmds.lua +++ b/lua/plex/config/autocmds.lua @@ -96,7 +96,7 @@ vim.api.nvim_create_autocmd('VimResized', { -- Wrap and enable spell-checker in text filetypes vim.api.nvim_create_autocmd('FileType', { group = augroup('spell_conceal'), - pattern = { 'gitcommit', 'markdown' }, + pattern = { 'gitcommit', 'markdown', 'tex', 'latex', 'norg' }, callback = function() vim.opt_local.spell = true vim.opt_local.conceallevel = 0 diff --git a/lua/plex/config/keymaps.lua b/lua/plex/config/keymaps.lua index a07528c..d4f80b9 100644 --- a/lua/plex/config/keymaps.lua +++ b/lua/plex/config/keymaps.lua @@ -72,6 +72,10 @@ map('c', '', '') map('n', 'zl', 'z4l') map('n', 'zh', 'z4h') +-- move to spelling mistake +map('n', 'zn', ']s') +map('n', 'zN', '[s') + -- Clipboard -- ===