aboutsummaryrefslogtreecommitdiff
path: root/spellcheck.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spellcheck.lua')
-rw-r--r--spellcheck.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 5e90311..4e0b13f 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -81,4 +81,10 @@ vis:map(vis.modes.NORMAL, "<C-w>", function(keys)
return 0
end, "Spellcheck word")
+vis:option_register("spelllang", "string", function(value, toogle)
+ module.lang = value
+ vis:info("Spellchecking language is now "..value)
+ return true
+end, "The language used for spellchecking")
+
return module