From 852e37e8adc8090f64380f2515d242ef65dc9c50 Mon Sep 17 00:00:00 2001 From: Rivera Calzadillas Date: Mon, 12 Feb 2024 15:16:21 -0700 Subject: Turn on highlighting when suggestions keybinding Ctrl-W W is pressed --- spellcheck.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spellcheck.lua b/spellcheck.lua index 3cbf619..0c3549d 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -331,6 +331,9 @@ vis:map(vis.modes.NORMAL, '', function() end, 'Toggle spellchecking in the current window') vis:map(vis.modes.NORMAL, 'w', function() + -- Turn on highlighting + enable_spellcheck() + local win = vis.win local file = win.file local pos = win.selection.pos -- cgit