diff options
author | Rivera Calzadillas <hugo@roguh.com> | 2024-02-12 15:16:21 -0700 |
---|---|---|
committer | Rivera Calzadillas <hugo@roguh.com> | 2024-02-12 15:16:21 -0700 |
commit | 852e37e8adc8090f64380f2515d242ef65dc9c50 (patch) | |
tree | 01e49d3e1c6a38e5bb2a0e72389523474030a632 /spellcheck.lua | |
parent | 74b9940faa3f66a3dfbf759188faf0016cb8ed39 (diff) | |
download | vis-spellcheck-852e37e8adc8090f64380f2515d242ef65dc9c50.tar.gz |
Turn on highlighting when suggestions keybinding Ctrl-W W is pressed
Diffstat (limited to 'spellcheck.lua')
-rw-r--r-- | spellcheck.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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, '<F7>', function() end, 'Toggle spellchecking in the current window') vis:map(vis.modes.NORMAL, '<C-w>w', function() + -- Turn on highlighting + enable_spellcheck() + local win = vis.win local file = win.file local pos = win.selection.pos |