diff options
| -rw-r--r-- | spellcheck.lua | 6 |
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 |
