aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfischerling <florian.fischer@muhq.space>2024-02-13 21:22:26 +0000
committerGitHub <noreply@github.com>2024-02-13 21:22:26 +0000
commit0914016d89e3f12429eed41513c7d5ac37fd39be (patch)
tree01e49d3e1c6a38e5bb2a0e72389523474030a632
parent74b9940faa3f66a3dfbf759188faf0016cb8ed39 (diff)
parent852e37e8adc8090f64380f2515d242ef65dc9c50 (diff)
downloadvis-spellcheck-0914016d89e3f12429eed41513c7d5ac37fd39be.tar.gz
Merge pull request #12 from roguh/turn_on_highlighting_when_suggesting
Turn on highlighting when suggestions keybinding Ctrl-W W is pressed
-rw-r--r--spellcheck.lua3
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